Exception: Util::Params::Error

Inherits:
Exception
  • Object
show all
Defined in:
lib/util/params/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, code, message) ⇒ Error

Returns a new instance of Error.



8
9
10
11
12
13
# File 'lib/util/params/error.rb', line 8

def initialize status, code, message
  super nil
  @status_code = status
  @error_code = code
  @error_message = message
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



6
7
8
# File 'lib/util/params/error.rb', line 6

def error_code
  @error_code
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



6
7
8
# File 'lib/util/params/error.rb', line 6

def error_message
  @error_message
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



6
7
8
# File 'lib/util/params/error.rb', line 6

def status_code
  @status_code
end