final case class WrongType(foundType: ConfigValueType, expectedTypes: Set[ConfigValueType], location: Option[ConfigValueLocation], path: Option[String]) extends ConfigReaderFailure with Product with Serializable
A failure representing a wrong type of a given ConfigValue.
- foundType
the ConfigValueType that was found
- expectedTypes
the ConfigValueTypes that were expected
- location
an optional location of the ConfigValue that raised the failure
- path
an optional path to the value that had a wrong type
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.0) The pureconfig artifact with organization com.github.melrief is deprecated and won't be published anymore. Please update your dependency to use the organization com.github.pureconfig
- Alphabetic
- By Inheritance
- WrongType
- Serializable
- Serializable
- Product
- Equals
- ConfigReaderFailure
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
WrongType(foundType: ConfigValueType, expectedTypes: Set[ConfigValueType], location: Option[ConfigValueLocation], path: Option[String])
- foundType
the ConfigValueType that was found
- expectedTypes
the ConfigValueTypes that were expected
- location
an optional location of the ConfigValue that raised the failure
- path
an optional path to the value that had a wrong type
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
-
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
- WrongType → ConfigReaderFailure
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expectedTypes: Set[ConfigValueType]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val foundType: ConfigValueType
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
location: Option[ConfigValueLocation]
- Definition Classes
- WrongType → 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
- WrongType → ConfigReaderFailure
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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]): WrongType
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
- WrongType → ConfigReaderFailure