All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play.api.rest.Errors.scala Maven / Gradle / Ivy

package play.api.rest

import play.api.libs.json.JsError

import com.github.aselab.activerecord.validations.ValidationError

/**
 * @author Karel Cemus
 */

trait Errors {

  def forbidden: Error

  def methodNotSupported: Error

  def invalidJson(errors: JsError): Error

  def internalError(error: Throwable): Error

  def invalidInput(errors: Traversable[ValidationError]): Error
}

trait Error {
  def status: Int
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy