object ResourceResult extends Simple[ResourceError]
- Alphabetic
 - By Inheritance
 
- ResourceResult
 - Simple
 - Simple
 - AnyRef
 - Any
 
- Hide All
 - Show All
 
- Public
 - Protected
 
Value Members
-   final  def !=(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def ##: Int
- Definition Classes
 - AnyRef → Any
 
 -   final  def ==(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def asInstanceOf[T0]: T0
- Definition Classes
 - Any
 
 -    def clone(): AnyRef
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
 
 -    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.
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
Example: -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -    def equals(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef → Any
 
 -    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()
 
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @HotSpotIntrinsicCandidate() @native()
 
 -    def hashCode(): Int
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @HotSpotIntrinsicCandidate() @native()
 
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @HotSpotIntrinsicCandidate() @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @HotSpotIntrinsicCandidate() @native()
 
 -    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.
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
Example: -    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.
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
Example: -    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()
 
 -    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()
 
 -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -    def toString(): String
- Definition Classes
 - AnyRef → Any
 
 -   final  def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 -   final  def wait(arg0: Long): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException]) @native()
 
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])