CurrencyError

world.money.errors.CurrencyError
See theCurrencyError companion trait
object CurrencyError

Container for specific CurrencyError types.

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class CurrencyNotFound(code: String) extends CurrencyError

Returned if a currency with the specified alphabetic code is not found.

Returned if a currency with the specified alphabetic code is not found.

Value parameters

code

The 3-letter alphabetic code that was not found.

Attributes

Supertypes
trait Product
trait Equals
trait MoneyError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class InvalidCcyCodeFormat(value: String) extends CurrencyError

Returned if a String does not conform to the required format for a 3-letter ISO 4217 alphabetic currency code.

Returned if a String does not conform to the required format for a 3-letter ISO 4217 alphabetic currency code.

Value parameters

value

The invalid String that was rejected.

Attributes

Supertypes
trait Product
trait Equals
trait MoneyError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class InvalidNumericCodeRange(value: Int) extends CurrencyError

Returned if an Int is outside the valid range for a 3-digit ISO 4217 numeric currency code.

Returned if an Int is outside the valid range for a 3-digit ISO 4217 numeric currency code.

Value parameters

value

The invalid Int that was rejected.

Attributes

Supertypes
trait Product
trait Equals
trait MoneyError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
final case class NumericCodeNotFound(code: Int) extends CurrencyError

Returned if a currency with the specified numeric code is not found.

Returned if a currency with the specified numeric code is not found.

Value parameters

code

The 3-digit numeric code that was not found.

Attributes

Supertypes
trait Product
trait Equals
trait MoneyError
trait NoStackTrace
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Inherited and Abstract 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