ProblemReport

fmgp.did.comm.protocol.reportproblem2.ProblemReport
See theProblemReport companion object
case class ProblemReport(id: MsgID, to: Set[TO], from: FROM, pthid: MsgID, ack: Option[Seq[MsgID]], code: ProblemCode, comment: Option[String], args: Option[Seq[String]], escalate_to: Option[String])
{
 "type": "https://didcomm.org/report-problem/2.0/problem-report",
 "id": "7c9de639-c51c-4d60-ab95-103fa613c805",
 "pthid": "1e513ad4-48c9-444e-9e7e-5b8b45c5e325",
 "ack": ["1e513ad4-48c9-444e-9e7e-5b8b45c5e325"],
 "body": {
   "code": "e.p.xfer.cant-use-endpoint",
   "comment": "Unable to use the {1} endpoint for {2}.",
   "args": [
     "https://agents.r.us/inbox",
     "did:sov:C805sNYhMrjHiqZDTUASHg"
   ],
   "escalate_to": "mailto:admin@foo.org"
 }
}

Value parameters

ack

OPTIONAL - It SHOULD be included if the problem in question was triggered directly by a preceding message. (Contrast problems arising from a timeout or a user deciding to cancel a transaction, which can arise independent of a preceding message. In such cases, ack MAY still be used, but there is no strong recommendation.)

args

OPTIONAL - Contains situation-specific values that are interpolated into the value of comment, providing extra detail for human readers. Each unique problem code has a definition for the args it takes. In this example, e.p.xfer.cant-use-endpoint apparently expects two values in args: the first is a URL and the second is a DID. Missing or null args MUST be replaced with a question mark character (?) during interpolation; extra args MUST be appended to the main text as comma-separated values.

code

REQUIRED - Deserves a rich explanation; see Problem Codes below.

comment

OPTIONAL - but recommended. Contains human-friendly text describing the problem. If the field is present, the text MUST be statically associated with code, meaning that each time circumstances trigger a problem with the same code, the value of comment will be the same. This enables localization and cached lookups, and it has some cybersecurity benefits. The value of comment supports simple interpolation with args (see next), where args are referenced as {1}, {2}, and so forth.

escalate_to

OPTIONAL - Provides a URI where additional help on the issue can be received.

pthid

REQUIRED - The value is the thid of the thread in which the problem occurred. (Thus, the problem report begins a new child thread, of which the triggering context is the parent. The parent context can react immediately to the problem, or can suspend progress while troubleshooting occurs.)

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def commentWithArgs: Option[String]
def piuri: PIURI

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product