class Azu::Response::ExternalServiceError

Overview

External service errors

Defined in:

azu/response.cr

Constructors

Instance Method Summary

Instance methods inherited from class Azu::Response::Error

context : ErrorContext | Nil context, context=(context : ErrorContext | Nil) context=, detail : String detail, detail=(detail : String) detail=, error_id : String error_id, error_id=(error_id : String) error_id=, errors : Array(String) errors, errors=(errors : Array(String)) errors=, fingerprint : String fingerprint, fingerprint=(fingerprint : String) fingerprint=, html(context)
html
html
, json json, link link, render(template : String, data)
render
render
, source : String source, source=(source : String) source=, status : HTTP::Status status, status=(status : HTTP::Status) status=, status_code status_code, text text, title : String title, title=(title : String) title=, to_s(context : HTTP::Server::Context) to_s, xml xml

Constructor methods inherited from class Azu::Response::Error

new(title : String, status : HTTP::Status, errors : Array(String), context : Azu::ErrorContext | Nil = nil) new

Class methods inherited from class Azu::Response::Error

from_exception(ex, status = 500, context : ErrorContext | Nil = nil) from_exception

Instance methods inherited from module Azu::Response

render render

Constructor Detail

def self.new(service_name : Nil | String = nil, message = "External service unavailable", context : ErrorContext | Nil = nil) #

[View source]

Instance Method Detail

def service_name : String | Nil #

[View source]