Packages

o

kantan.codecs.resource

ResourceResult

object ResourceResult extends Simple[ResourceError]

Provides convenience methods for ResourceResult.

Source
ResourceResult.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ResourceResult
  2. Simple
  3. Simple
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def close[U](u: => U): ResourceResult[Unit]

    Evaluates the specified value, returning a CloseResult if an error occurs.

    Evaluates the specified value, returning a CloseResult if an error occurs.

    Example:
    1. scala> def f: Int = sys.error("something went wrong")
      
      scala> ResourceResult.close(f)
      res0: ResourceResult[Unit] = Left(CloseError: something went wrong)
    See also

    ResourceResult.apply

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def failure(f: ResourceError): Either[ResourceError, Nothing]

    Turns the specified value into a failure.

    Turns the specified value into a failure.

    Definition Classes
    Simple
    Annotations
    @inline()
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. def open[A](a: => A): ResourceResult[A]

    Evaluates the specified value, returning an OpenResult if an error occurs.

    Evaluates the specified value, returning an OpenResult if an error occurs.

    Example:
    1. scala> def f: Int = sys.error("something went wrong")
      
      scala> ResourceResult.open(f)
      res0: ResourceResult[Int] = Left(OpenError: something went wrong)
    See also

    OpenResult.apply

  18. def process[A](a: => A): ResourceResult[A]

    Evaluates the specified value, returning a ProcessResult if an error occurs.

    Evaluates the specified value, returning a ProcessResult if an error occurs.

    Example:
    1. scala> def f: Int = sys.error("something went wrong")
      
      scala> ResourceResult.process(f)
      res0: ResourceResult[Int] = Left(ProcessError: something went wrong)
    See also

    ProcessResult.apply

  19. def sequence[S, M[X] <: IterableOnce[X]](rs: M[Either[ResourceError, S]])(implicit bf: BuildFrom[M[Either[ResourceError, S]], S, M[S]]): Either[ResourceError, M[S]]

    Turns a collection of results into a result of a collection.

    Turns a collection of results into a result of a collection.

    Definition Classes
    Simple
    Annotations
    @inline()
  20. def success[S](s: S): Either[ResourceError, S]

    Turns the specified value into a success.

    Turns the specified value into a success.

    Definition Classes
    Simple
    Annotations
    @inline()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Simple[ResourceError]

Inherited from Simple[ResourceError]

Inherited from AnyRef

Inherited from Any

Ungrouped