class Dirwatch::UserFriendlyException
- Dirwatch::UserFriendlyException
- Exception
- Reference
- Object
Overview
An exception with a #readable_message, which can be given directly to the user.
Defined in:
dirwatch/user_friendly_exception.crConstructors
- 
        .new(readable_message : String, cause : Exception | Nil = nil)
        
          Creates a UserFriendlyExceptionwith a#readable_messageand an optionalcause.
- 
        .new(readable_message : String, internal_message : String, cause : Exception | Nil = nil)
        
          Creates a UserFriendlyExceptionwith a#readable_message, an additionalmessagefor internal usage and an optionalcause.
Instance Method Summary
- 
        #readable_message : String
        
          The message meant for the user. 
Constructor Detail
        
        def self.new(readable_message : String, cause : Exception | Nil = nil)
        #
      
      
        Creates a UserFriendlyException with a #readable_message and an optional cause.
        
        def self.new(readable_message : String, internal_message : String, cause : Exception | Nil = nil)
        #
      
      
        Creates a UserFriendlyException with a #readable_message, an additional message for internal usage and an optional cause.