Exception: CloudRailSi::Errors::UserError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/cloudrail_si/errors/UserError.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ UserError

Returns a new instance of UserError.



4
5
6
7
8
# File 'lib/cloudrail_si/errors/UserError.rb', line 4

def initialize(message)
	updated_message = message.nil? ? nil : message.gsub('null', 'nil')

       super("An error occurred that you should be able to fix. The error message is:\n#{updated_message}")
end