getMessage(); } /** * Returns the error type. */ public function getErrorType(): string { return $this->contents['type']; } /** * Returns the error type. */ public function getErrorCode(): string { return $this->contents['code']; } }