org.sigilaris.core.failure.ErrorKey
See theErrorKey companion class
Factory for ErrorKey instances with pattern-based validation.
Attributes
-
Companion
-
class
-
Source
-
FailureCode.scala
-
Graph
-
-
Supertypes
-
trait Product
trait Mirror
class Object
trait Matchable
class Any
-
Self type
-
Members list
The names of the product elements
The names of the product elements
Attributes
-
Inherited from:
-
Mirror
-
Source
-
Mirror.scala
Builds an ErrorKey, falling back to a safe default if the candidate does not match the expected pattern.
Builds an ErrorKey, falling back to a safe default if the candidate does not match the expected pattern.
Value parameters
-
candidate
-
the proposed key string
-
code
-
the failure code to attach
-
fallback
-
the key string to use if candidate is invalid
-
keyPattern
-
regex the candidate must match
Attributes
-
Returns
-
an ErrorKey with either the candidate or fallback as rendered key
-
Source
-
FailureCode.scala