Exception: ApiExceptions::NeedAdminError
- Inherits:
-
BaseException
- Object
- StandardError
- BaseException
- ApiExceptions::NeedAdminError
- Defined in:
- app/lib/api_exceptions/need_admin_error.rb
Instance Attribute Summary
Attributes inherited from BaseException
Instance Method Summary collapse
-
#initialize(message: 'Only the creator of the need or an admin can update it', status: :forbidden) ⇒ NeedAdminError
constructor
A new instance of NeedAdminError.
Methods inherited from BaseException
Constructor Details
#initialize(message: 'Only the creator of the need or an admin can update it', status: :forbidden) ⇒ NeedAdminError
Returns a new instance of NeedAdminError.
5 6 7 8 |
# File 'app/lib/api_exceptions/need_admin_error.rb', line 5 def initialize(message: 'Only the creator of the need or an admin can update it', status: :forbidden) @data = @status = status end |