aries_cloudagent.protocols.problem_report.v1_0 package

async aries_cloudagent.protocols.problem_report.v1_0.internal_error(err: BaseError, http_error_class, record: Union[ConnRecord, BaseRecord], outbound_handler: Coroutine, code: Optional[str] = None)[source]

Send problem report and raise corresponding HTTP error.

Submodules

aries_cloudagent.protocols.problem_report.v1_0.handler module

Generic problem report handler.

class aries_cloudagent.protocols.problem_report.v1_0.handler.ProblemReportHandler[source]

Bases: BaseHandler

Problem report handler class.

async handle(context: RequestContext, responder: BaseResponder)[source]

Handle problem report message.

Parameters
  • context – Request context

  • responder – Responder used to reply

aries_cloudagent.protocols.problem_report.v1_0.message module

Represents a generic problem report message.

class aries_cloudagent.protocols.problem_report.v1_0.message.ProblemReport(*, description: Optional[Mapping[str, str]] = None, problem_items: Optional[Sequence[Mapping[str, str]]] = None, who_retries: Optional[str] = None, fix_hint: Optional[Mapping[str, str]] = None, impact: Optional[str] = None, where: Optional[str] = None, noticed_time: Optional[str] = None, tracking_uri: Optional[str] = None, escalation_uri: Optional[str] = None, **kwargs)[source]

Bases: AgentMessage

Base class representing a generic problem report message.

class Meta[source]

Bases: object

Problem report metadata.

handler_class = 'aries_cloudagent.protocols.problem_report.v1_0.handler.ProblemReportHandler'
message_type = 'notification/1.0/problem-report'
schema_class = 'ProblemReportSchema'
class aries_cloudagent.protocols.problem_report.v1_0.message.ProblemReportSchema(*args: Any, **kwargs: Any)[source]

Bases: AgentMessageSchema

Schema for ProblemReport base class.

class Meta[source]

Bases: object

Problem report schema metadata.

model_class

alias of ProblemReport

validate_fields(data, **kwargs)

Validate schema fields.

Parameters

data – The data to validate

Raises

ValidationError – if data has neither indy nor ld_proof

aries_cloudagent.protocols.problem_report.v1_0.message_types module

Message type identifiers for problem reports.