Exception: ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- ApiError
- Defined in:
- lib/api_error.rb
Instance Attribute Summary collapse
-
#problem_dto ⇒ Object
readonly
Returns the value of attribute problem_dto.
Instance Method Summary collapse
-
#initialize(problem_dto) ⇒ ApiError
constructor
A new instance of ApiError.
Constructor Details
#initialize(problem_dto) ⇒ ApiError
Returns a new instance of ApiError.
4 5 6 7 |
# File 'lib/api_error.rb', line 4 def initialize(problem_dto) @problem_dto = problem_dto super(problem_dto.detail) end |
Instance Attribute Details
#problem_dto ⇒ Object (readonly)
Returns the value of attribute problem_dto.
2 3 4 |
# File 'lib/api_error.rb', line 2 def problem_dto @problem_dto end |