Class: NForm::ServiceError

Inherits:
Error
  • Object
show all
Defined in:
lib/nform/service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Unknown Error") ⇒ ServiceError

Returns a new instance of ServiceError.



51
52
53
# File 'lib/nform/service.rb', line 51

def initialize(message="Unknown Error")
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



50
51
52
# File 'lib/nform/service.rb', line 50

def message
  @message
end