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, cause : Exception? = nil)
Creates a
UserFriendlyException
with a#readable_message
and an optionalcause
. -
.new(readable_message, internal_message : String, cause : Exception? = nil)
Creates a
UserFriendlyException
with a#readable_message
, an additionalmessage
for internal usage and an optionalcause
.
Instance Method Summary
-
#readable_message : String
The message meant for the user.
Constructor Detail
def self.new(readable_message, cause : Exception? = nil)
#
Creates a UserFriendlyException
with a #readable_message
and an optional cause
.
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
.