final case class CannotConvert(value: String, toType: String, because: String, location: Option[ConfigValueLocation], path: Option[String]) extends ConfigReaderFailure with Product with Serializable
A failure representing the inability to convert a given value to a desired type.
- value
the value that was requested to be converted
- toType
the target type that the value was requested to be converted to
- because
the reason why the conversion was not possible
- location
an optional location of the ConfigValue that raised the failure
- path
an optional path to the value that couldn't be converted
- Alphabetic
- By Inheritance
- CannotConvert
- Serializable
- Serializable
- Product
- Equals
- ConfigReaderFailure
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CannotConvert(value: String, toType: String, because: String, location: Option[ConfigValueLocation], path: Option[String])
- value
the value that was requested to be converted
- toType
the target type that the value was requested to be converted to
- because
the reason why the conversion was not possible
- location
an optional location of the ConfigValue that raised the failure
- path
an optional path to the value that couldn't be converted
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val because: String
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
description: String
A human-readable description of the failure.
A human-readable description of the failure.
- Definition Classes
- CannotConvert → ConfigReaderFailure
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
location: Option[ConfigValueLocation]
- Definition Classes
- CannotConvert → ConfigReaderFailure
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
val
path: Option[String]
- Definition Classes
- CannotConvert → ConfigReaderFailure
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val toType: String
- val value: String
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withImprovedContext(parentKey: String, parentLocation: Option[ConfigValueLocation]): CannotConvert
Improves the context of this failure with the key to the parent node and its optional location.
Improves the context of this failure with the key to the parent node and its optional location.
- Definition Classes
- CannotConvert → ConfigReaderFailure