AuthCompromisedException extends ForbiddenException
Compromised authentication exception. Used when we suspect theft of the rememberMe cookie.
This exception should be thrown when a user has attempted to perform an unauthorized action.
Tags
Table of Contents
| $defaultMessage | string | |
|---|---|---|
| $httpErrorCode | int | |
| $defaultMessage | string | |
| $messages | ||
| getHttpErrorCode() | Return the HTTP status code associated with this exception. | int | 
| getUserMessages() | Return the user-viewable messages associated with this exception. | mixed | 
| addUserMessage() | Add a user-viewable message for this exception. | mixed | 
Properties
$defaultMessage
        protected
                string
        $defaultMessage
         = 'ACCOUNT.SESSION_COMPROMISED'    
            
$httpErrorCode
        protected
                int
        $httpErrorCode
         = 500    
            
$defaultMessage
        protected
                string
        $defaultMessage
         = 'SERVER_ERROR'    
            
$messages
        protected
                mixed
        $messages
         = []    
            
Methods
getHttpErrorCode()
Return the HTTP status code associated with this exception.
        public
                                getHttpErrorCode(
                )
        : int
    
    
    
        
            Return values
intgetUserMessages()
Return the user-viewable messages associated with this exception.
        public
                                getUserMessages(
                )
        : mixed
    
    
    
        
            Return values
mixedaddUserMessage()
Add a user-viewable message for this exception.
        public
                                addUserMessage(
                    
                            $message :
                UserMessage|string
                            
                    
            [,                 $parameters :
                array
                 = [] ]            
                )
        : mixed
    
    
            Parameters
- $message : UserMessage|string
- $parameters : array = []
- The parameters to be filled in for any placeholders in the message.