Errors

io.scalaland.chimney.partial.Result.Errors
See theErrors companion class
object Errors

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Errors.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

final def `__mergeResultNullable`[A](errorsNullable: Errors, result: Result[A]): Errors

Used internally by macro. Please don't use in your code.

Used internally by macro. Please don't use in your code.

Attributes

final def apply(error: Error, errors: Error*): Errors

Creates failed result from one io.scalaland.chimney.partial.Error or more.

Creates failed result from one io.scalaland.chimney.partial.Error or more.

Value parameters

error

required head io.scalaland.chimney.partial.Error

errors

optional tail io.scalaland.chimney.partial.Errors

Attributes

Returns

io.scalaland.chimney.partial.Result.Errors aggregating all passed io.scalaland.chimney.partial.Errors

Since

0.7.0

final def fromString(message: String): Errors

Creates failed result from an error message.

Creates failed result from an error message.

Value parameters

message

message to wrap in io.scalaland.chimney.partial.Error

Attributes

Returns

io.scalaland.chimney.partial.Result.Errors containing one io.scalaland.chimney.partial.Error

Since

0.7.0

final def fromStrings(message: String, messages: String*): Errors

Creates failed result from one error message or more.

Creates failed result from one error message or more.

Value parameters

message

required message to wrap in io.scalaland.chimney.partial.Error

messages

optional messages to wrap in io.scalaland.chimney.partial.Error

Attributes

Returns

io.scalaland.chimney.partial.Result.Errors aggregating all passed io.scalaland.chimney.partial.Errors

Since

0.7.0

final def merge(errors1: Errors, errors2: Errors): Errors

Creates new failed result containing all errors of 2 existing failed results.

Creates new failed result containing all errors of 2 existing failed results.

Value parameters

errors1

failed result which io.scalaland.chimney.partial.Errors should appear in the beginning

errors2

failed result which io.scalaland.chimney.partial.Errors should appear in the end

Attributes

Returns

io.scalaland.chimney.partial.Result.Errors aggregating errors from both results

Since

0.7.0

final def single(error: Error): Errors

Creates failed result from a single io.scalaland.chimney.partial.Error.

Creates failed result from a single io.scalaland.chimney.partial.Error.

Value parameters

error

required io.scalaland.chimney.partial.Error

Attributes

Returns

io.scalaland.chimney.partial.Result.Errors containing one io.scalaland.chimney.partial.Error

Since

0.7.0