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.



43
44
45
# File 'lib/nform/service.rb', line 43

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

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



42
43
44
# File 'lib/nform/service.rb', line 42

def message
  @message
end