Package

helpers

sorus

Permalink

package sorus

Visibility
  1. Public
  2. All

Type Members

  1. class Fail extends AnyRef

    Permalink
  2. case class FailWithResult(message: String, result: Result, cause: Option[\/[Throwable, Fail]] = None) extends Fail with Product with Serializable

    Permalink
  3. trait FormatErrorResult[T <: Request[_]] extends AnyRef

    Permalink
  4. trait SorusPlay[T <: Request[_]] extends Sorus

    Permalink

    This trait allow you to use the ?| operator in your Play controller and get a Future[Result] instead of a Future[Fail \/ T]

    This trait allow you to use the ?| operator in your Play controller and get a Future[Result] instead of a Future[Fail \/ T]

    Usage :

    class MyController extends Controller with FormatErrorResult with SorusPlay

    You may override default serialization of Fail into Error by extending FormatErrorResult.

Value Members

  1. object Fail

    Permalink
  2. object SorusDSL

    Permalink

    Inspiration :

    Inspiration :

    • http://fr.slideshare.net/normation/nrm-scala-iocorrectlymanagingerrorsinscalav13
    • https://github.com/Kanaka-io/play-monadic-actions

Ungrouped