ValidationError

com.worxbend.codeberg4s.ValidationError
final case class ValidationError(field: String, message: String)

A single pre-flight validation failure produced by a smart constructor.

Validation happens before any request is built, so a ValidationError never carries a CallContext: there is no call yet. It is lifted into CodebergError.Validation when it has to travel on the same channel as remote failures.

Value parameters

field

the lower-camel-case name of the rejected concept, stable enough to branch on — "owner", "repoName", "apiToken", "baseUri", "pageSize"

message

a short, human-readable reason, lowercase and without a trailing period. It never contains credential material.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product