Converts a value to a Problem.
Normalises whatever a failed exchange surfaces into a single shape callers may branch on:
title
detail
report
Values other than problems are assigned status 0, marking a failure no origin server assigned a status to.
status
Stack traces and causes are left out, as a problem is expected to travel beyond the process that raised it.
The value to convert
An immutable Problem describing value
value
Converts a value to a Problem.
Normalises whatever a failed exchange surfaces into a single shape callers may branch on:
titleand its message asdetailreportdetailValues other than problems are assigned
status0, marking a failure no origin server assigned a status to.Stack traces and causes are left out, as a problem is expected to travel beyond the process that raised it.