grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026 null, 'parameter' => null]; /** * * @var LangText */ protected $detail; /** * * @param string $message * @param integer $code * @param \Exception $previous * @param LangText $langMessage */ public function __construct($message = "", $code = 0, \Exception $previous = null, LangText $langMessage = null) { parent::__construct((self::MSG_PREFIX === $this::MSG_PREFIX ? $this::MSG_PREFIX : self::MSG_PREFIX . ' ' . $this::MSG_PREFIX) . ' ' . $message, $code ? $code : self::DEFAULT_CODE, $previous, $langMessage); } /** * Gives addition details to what caused the exception * @return LangText */ public function getDetail() { $text = $this->detail ? $this->detail : new LangText($this::DETAIL_TEXT_LABEL); return $text; } /** * @param string $detail */ public function setDetail(LangText $detail) { $this->detail = $detail; } /** * @param array|string $source */ public function setSource($source) { if (is_string($source)) { $source = ['pointer' => $source]; } $this->source = $source; } /** * * @return array */ public function getSource() { return $this->source; } /** * @return int http status code that should be returned back to the client */ public function getHttpStatus() { return $this::HTTP_STATUS; } }