Exception: BackupOrganizer::Error::ErrorWithCustomMessage

Inherits:
BaseError
  • Object
show all
Defined in:
lib/backup_organizer/error/error_with_custom_message.rb

Direct Known Subclasses

ConfigurationError, SetupError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ ErrorWithCustomMessage

Returns a new instance of ErrorWithCustomMessage.



6
7
8
# File 'lib/backup_organizer/error/error_with_custom_message.rb', line 6

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/backup_organizer/error/error_with_custom_message.rb', line 4

def message
  @message
end