FailureMessageEnvelope

org.sigilaris.core.failure.FailureMessageEnvelope
See theFailureMessageEnvelope companion class

Companion for FailureMessageEnvelope.

Attributes

Companion
class
Source
FailureMessageEnvelope.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def normalized(errorKey: String, message: Option[String], detail: Option[String]): FailureMessageEnvelope

Normalizes empty message/detail branches into None.

Normalizes empty message/detail branches into None.

Attributes

Source
FailureMessageEnvelope.scala
def parse(rendered: String): FailureMessageEnvelope

Parses a rendered failure message back into its structured envelope.

Parses a rendered failure message back into its structured envelope.

The parser keeps backward compatibility with the legacy format and therefore treats the first literal " | " after the optional message as the detail boundary. Canonical inputs should avoid embedding that exact separator token inside message/detail payloads.

Attributes

Source
FailureMessageEnvelope.scala