ConversionError

world.money.errors.ConversionError
See theConversionError companion trait

Container for specific ConversionError 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 ProviderError extends ConversionError

Returned if an error occurs within an world.money.conversion.ExchangeRateProvider.

Returned if an error occurs within an world.money.conversion.ExchangeRateProvider.

This can be used to wrap exceptions from underlying HTTP clients, databases, etc.

Value parameters

cause

An optional underlying Throwable that caused this error.

message

A description of the provider error.

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class RateNotFound(query: ConversionQuery) extends ConversionError

Returned if an exchange rate cannot be found for a given conversion query.

Returned if an exchange rate cannot be found for a given conversion query.

Value parameters

query

The world.money.conversion.ConversionQuery that failed.

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