org.scalatra

validation

package validation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. validation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait ErrorCode extends AnyRef

    A base trait for error codes, all error codes need to extend this.

  2. class ErrorCodeSerializer extends Serializer[ErrorCode]

    Assumes your error codes will always be case objects.

  3. case class FieldName(name: String) extends Product with Serializable

    Encapsulates a field name for use in a validation error

  4. case class ValidationError(message: String, field: Option[FieldName], code: Option[ErrorCode], args: Seq[Any]) extends Product with Serializable

    Encapsulates errors in an API

  5. class ValidationErrorSerializer extends CustomSerializer[ValidationError]

    Serializes a validation error into a structure:

      {
        "message": "the error message",
        "field": "field_name",
        "code": "ValidationFail",
        "args": []
      }
    

Value Members

  1. object BadGateway extends ErrorCode with Product with Serializable

  2. object GatewayTimeout extends ErrorCode with Product with Serializable

  3. object NotFound extends ErrorCode with Product with Serializable

  4. object NotImplemented extends ErrorCode with Product with Serializable

  5. object ServiceUnavailable extends ErrorCode with Product with Serializable

  6. object UnknownError extends ErrorCode with Product with Serializable

  7. object Validation

  8. object ValidationError extends Serializable

    Allows for unordered building of org.scalatra.validation.ValidationError

  9. object ValidationFail extends ErrorCode with Product with Serializable

  10. object Validators

Inherited from AnyRef

Inherited from Any

Ungrouped