2 declare(strict_types = 1);
60 self::NO_PAGES_FOUND =>
'No page on rootlevel found',
61 self::PAGE_NOT_FOUND =>
'The requested page does not exist',
62 self::PAGE_ALIAS_NOT_FOUND =>
'The requested page alias does not exist',
64 self::RENDERING_INSTRUCTIONS_NOT_FOUND =>
'No TypoScript template found',
65 self::RENDERING_INSTRUCTIONS_NOT_CONFIGURED =>
'The page is not configured',
67 self::CACHEHASH_COMPARISON_FAILED =>
'Request parameters could not be validated (&cHash comparison failed)',
68 self::CACHEHASH_EMPTY =>
'Request parameters could not be validated (&cHash empty)',
70 self::LANGUAGE_NOT_AVAILABLE =>
'Page is not available in the requested language',
71 self::LANGUAGE_NOT_AVAILABLE_STRICT_MODE =>
'Page is not available in the requested language (strict)',
72 self::LANGUAGE_AND_FALLBACKS_NOT_AVAILABLE =>
'Page is not available in the requested language (fallbacks did not apply)',
73 self::LANGUAGE_DEFAULT_NOT_AVAILABLE =>
'Page is not available in default language',
75 self::ACCESS_DENIED_GENERAL =>
'The requested page was not accessible',
76 self::ACCESS_DENIED_PAGE_NOT_RESOLVED =>
'ID was not an accessible page',
77 self::ACCESS_DENIED_SUBSECTION_NOT_RESOLVED =>
'Subsection was found and not accessible',
78 self::ACCESS_DENIED_HOST_PAGE_MISMATCH =>
'ID was outside the domain',
79 self::ACCESS_DENIED_INVALID_PAGETYPE =>
'The requested page type cannot be rendered',
81 self::DATABASE_CONNECTION_FAILED =>
'Database Connection failed',
82 self::ROOTLINE_BROKEN =>
'The requested page did not have a proper connection to the tree-root'
91 if (!isset($this->messages[$reasonCode])) {
92 throw new \InvalidArgumentException(
'No message for page access reason code "' . $reasonCode .
'" found.', 1529299833);
94 return $this->messages[$reasonCode];