class Dirwatch::UserFriendlyException

Overview

An exception with a #readable_message, which can be given directly to the user.

Defined in:

dirwatch/user_friendly_exception.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(readable_message, cause : Exception? = nil) #

Creates a UserFriendlyException with a #readable_message and an optional cause.


[View source]
def self.new(readable_message, internal_message : String, cause : Exception? = nil) #

Creates a UserFriendlyException with a #readable_message, an additional message for internal usage and an optional cause.


[View source]

Instance Method Detail

def readable_message : String #

The message meant for the user.


[View source]