class
Azu::Response::Error
- Azu::Response::Error
- Exception
- Reference
- Object
Overview
Enhanced base error class with better context and debugging
Included Modules
Direct Known Subclasses
- Azu::Response::AuthenticationError
- Azu::Response::AuthorizationError
- Azu::Response::BadRequest
- Azu::Response::DatabaseError
- Azu::Response::ExternalServiceError
- Azu::Response::NotFound
- Azu::Response::RateLimitError
- Azu::Response::TimeoutError
- Azu::Response::ValidationError
Defined in:
azu/response.crConstructors
Class Method Summary
Instance Method Summary
- #context : ErrorContext | Nil
- #context=(context : ErrorContext | Nil)
- #detail : String
- #detail=(detail : String)
- #error_id : String
- #error_id=(error_id : String)
- #errors : Array(String)
- #errors=(errors : Array(String))
- #fingerprint : String
- #fingerprint=(fingerprint : String)
- #html(context)
- #html
- #json
- #link
- #render(template : String, data)
- #render
- #source : String
- #source=(source : String)
- #status : HTTP::Status
- #status=(status : HTTP::Status)
- #status_code
- #text
- #title : String
- #title=(title : String)
- #to_s(context : HTTP::Server::Context)
- #xml
Instance methods inherited from module Azu::Response
render
render
Constructor Detail
def self.new(title : String, status : HTTP::Status, errors : Array(String), context : Azu::ErrorContext | Nil = nil)
#