object ErrorCode
Users can obtain the same information by inspecting returned ConstraintViolation
instances.
The invalid value is returned from violation#getInvalidValue
and the configured annotation
which specified configuration values can be obtained from violation#getConstraintDescriptor#getAnnotation
.
- Annotations
- @deprecated
- Deprecated
(Since version 2021-03-25) No replacement.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorCode
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class InvalidBooleanValue(bool: Boolean) extends ErrorCode with Product with Serializable
- case class InvalidCountryCodes(codes: Set[String]) extends ErrorCode with Product with Serializable
- case class InvalidTimeGranularity(time: DateTime, targetGranularity: TimeUnit) extends ErrorCode with Product with Serializable
- case class InvalidUUID(uuid: String) extends ErrorCode with Product with Serializable
- case class InvalidValues(invalid: Set[String], valid: Set[String]) extends ErrorCode with Product with Serializable
- case class PatternNotMatched(value: String, regex: String) extends ErrorCode with Product with Serializable
- case class PatternSyntaxError(message: String, regex: String) extends ErrorCode with Product with Serializable
- case class SizeOutOfRange(size: Number, min: Long, max: Long) extends ErrorCode with Product with Serializable
- case class TimeNotFuture(time: DateTime) extends ErrorCode with Product with Serializable
- case class TimeNotPast(time: DateTime) extends ErrorCode with Product with Serializable
- case class ValueOutOfRange(value: Number, min: Long, max: Long) extends ErrorCode with Product with Serializable
- case class ValueTooLarge(maxValue: Long, value: Number) extends ErrorCode with Product with Serializable
- case class ValueTooSmall(minValue: Long, value: Number) extends ErrorCode with Product with Serializable
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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- case object IllegalArgument extends ErrorCode with Product with Serializable
- case object RequiredFieldMissing extends ErrorCode with Product with Serializable
- case object Unknown extends ErrorCode with Product with Serializable
- case object ValueCannotBeEmpty extends ErrorCode with Product with Serializable