UserMessageException
class UserMessageException extends Exception implements JsonSerializable, HtmlAwareErrorInterface (View source)
Represents an error that can be safely shown to users.
Properties
| protected bool | $canBeLogged | Can this exception be added to the log?  | 
                |
| 
                                                            private                    bool
                                                                                
                                            Since: concrete5 8.5.0a3
                         | 
                $messageContainsHtml | Does the message contain an HTML-formatted string?  | 
                
Methods
                    bool
                
                
                    canBeLogged()
        
                                            
                
            Can this exception be added to the log?
                    $this
                
                
                    setCanBeLogged(bool $value)
        
                                            
                
            Can this exception be added to the log?
                    bool
                
                
                    messageContainsHtml()
        
                                            
                
            Does the message contain an HTML-formatted string?
                    $this
                
                
                    setMessageContainsHtml(bool $value)
        
                                            
                
            Does the message contain an HTML-formatted string?
                    jsonSerialize()
        
                                            
                
            {@inheritdoc}
Details
        
                            bool
    canBeLogged()
        
    
    Can this exception be added to the log?
        
                            $this
    setCanBeLogged(bool $value)
        
    
    Can this exception be added to the log?
        
                            bool
    messageContainsHtml()
        
    
    Since: concrete5 8.5.0a3
            
    
    
            
        
                            
        
    
            Does the message contain an HTML-formatted string?
        
                            $this
    setMessageContainsHtml(bool $value)
        
    
    Since: concrete5 8.5.0a3
            
    
    
            
        
                            
        
    
            Does the message contain an HTML-formatted string?
        
                            
    jsonSerialize()
        
    
    {@inheritdoc}