Exception: CustomException
- Inherits:
-
StandardError
- Object
- StandardError
- CustomException
- Defined in:
- lib/util/validation/error.rb
Instance Method Summary collapse
-
#initialize(merchant_message) ⇒ CustomException
constructor
A new instance of CustomException.
- #to_s ⇒ Object
Constructor Details
#initialize(merchant_message) ⇒ CustomException
Returns a new instance of CustomException.
4 5 6 7 8 9 10 11 12 |
# File 'lib/util/validation/error.rb', line 4 def initialize() @error_data = { "object" => "error", "type" => "param_error", "merchant_message" => , "user_message" => } super("CustomException: #{@error_data}") end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/util/validation/error.rb', line 14 def to_s JSON.generate(@error_data) end |