com.outworkers.util.play

ParseErrorAugmenter

implicit final class ParseErrorAugmenter extends AnyVal

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

Instance Constructors

  1. new ParseErrorAugmenter(errors: Seq[(JsPath, Seq[ValidationError])])

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  2. final def ##(): Int

    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  4. def apiError: ApiError

    This will transform a list of accumulated errors to a JSON body that's usable as a response format.

    This will transform a list of accumulated errors to a JSON body that's usable as a response format. From a non empty liust of errors this will produce something in the following format:

    {
    "error": {
      "code": 400,
      "messages": [
        "this is an error message",
        "this is another error message
      ]
    }
    }
    returns

  5. def asException: Exception with NoStackTrace

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def errorMessages: List[String]

  8. val errors: Seq[(JsPath, Seq[ValidationError])]

  9. def getClass(): Class[_ <: AnyVal]

    Definition Classes
    AnyVal → Any
  10. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  11. def response: Result

  12. def toJson: JsValue

  13. def toString(): String

    Definition Classes
    Any

Inherited from AnyVal

Inherited from NotNull

Inherited from Any

Ungrouped