Exception: ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dtoObject (readonly)

Returns the value of attribute problem_dto.



2
3
4
# File 'lib/api_error.rb', line 2

def problem_dto
  @problem_dto
end