RFC 9457 Problem Details fluent builder and #callsite causal error chains for unmbt/ciallo
impl ToJson for ErrorFramepub struct ProblemBuilder {
status : Int
type_uri : String
title : String
detail : String
code : String
instance : String?
trace_id : String?
source_loc : SourceLoc?
issues : Array[ValidationIssue]
extensions : Map[String, Json]
chain : Array[ErrorFrame]
}#callsite(autofill(loc))
fn ProblemBuilder::ProblemBuilder(status~ : Int, code~ : String, detail? : String, title? : String, type_uri? : String, loc~ : SourceLoc) -> ProblemBuilder#callsite(autofill(loc))
fn ProblemBuilder::with_cause(self : ProblemBuilder, code~ : String, message~ : String, loc~ : SourceLoc) -> ProblemBuilderfn ProblemBuilder::with_extension(self : ProblemBuilder, key : String, value : Json) -> ProblemBuilder#callsite(autofill(loc))
fn conflict(detail : String, code? : String, loc~ : SourceLoc) -> ProblemBuilder#callsite(autofill(loc))
fn gateway_timeout(detail : String, code? : String, loc~ : SourceLoc) -> ProblemBuilder#callsite(autofill(loc))
fn service_unavailable(detail : String, code? : String, loc~ : SourceLoc) -> ProblemBuilderInstall
Download zipRFC 9457 Problem Details fluent builder and #callsite causal error chains for unmbt/ciallo