FailNoExprAtN

ostrat.FailNoExprAtN
case class FailNoExprAtN(index: Int, unshow: Unshow[_]) extends Fail[ExcNoExprAtN]

No Expr at index N Fail.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ErrBi[ExcNoExprAtN, Nothing]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

override def equals(obj: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Fail -> Any
Inherited from:
Fail
override def flatMap[EE >: ExcNoExprAtN <: Throwable, B](f: Nothing => ErrBi[EE, B]): ErrBi[EE, B]

Classic flatMap function as we see on a Scala Option.

Classic flatMap function as we see on a Scala Option.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def flatMapAcc[EE >: ExcNoExprAtN <: Throwable, B](f: Nothing => ErrBiAcc[EE, B])(implicit ctE: ClassTag[EE], ctB: ClassTag[B]): ErrBiAcc[EE, B]

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
def flatOptMap[B](f: Nothing => Option[B]): ErrBi[ExcNoExprAtN | ExcNFT, B]

Classic flatMap function taking a function from A => Option[B] rather than the standard ErrBi of B.

Classic flatMap function taking a function from A => Option[B] rather than the standard ErrBi of B.

Attributes

Inherited from:
ErrBi
override def fld[B](fFail: ExcNoExprAtN => B, fSucc: Nothing => B): B

Alternative fold, that only takes one parameter list. this ErrBi into a type B. Takes two function parameters, one converts from A to B as in a normal map method. The second parameter in its own parameter list converts from the Error type to type B.

Alternative fold, that only takes one parameter list. this ErrBi into a type B. Takes two function parameters, one converts from A to B as in a normal map method. The second parameter in its own parameter list converts from the Error type to type B.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def fold[B](fFail: ExcNoExprAtN => B)(fSucc: Nothing => B): B

Fold this ErrBi into a type B. Takes two function parameters, one converts from A to B as in a normal map method. The second parameter in its own parameter list converts from the Error type to type B.

Fold this ErrBi into a type B. Takes two function parameters, one converts from A to B as in a normal map method. The second parameter in its own parameter list converts from the Error type to type B.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def forFld(fErr: ExcNoExprAtN => Unit, fSucc: Nothing => Unit): Unit

This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value. This method is implemented in the leaf Succ and Fail classes to avoid boxing.

This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value. This method is implemented in the leaf Succ and Fail classes to avoid boxing.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def forFold(fErr: ExcNoExprAtN => Unit)(fSucc: Nothing => Unit): Unit

This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value. This method is implemented in the leaf Succ and Fail classes to avoid boxing.

This is just a Unit returning fold, but is preferred because the method is explicit that it is called for effects, rather than to return a value. This method is implemented in the leaf Succ and Fail classes to avoid boxing.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def forSucc(f: Nothing => Unit): Unit

Will perform action if success. Does nothing if Fail.

Will perform action if success. Does nothing if Fail.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
def get: Nothing

Attributes

Inherited from:
ErrBi
final def getElse(elseValue: Nothing): Nothing

Gets the value of Good or returns the elseValue parameter if Bad. Both Good and Bad should be implemented in the leaf classes to avoid unnecessary boxing of primitive values.

Gets the value of Good or returns the elseValue parameter if Bad. Both Good and Bad should be implemented in the leaf classes to avoid unnecessary boxing of primitive values.

Attributes

Inherited from:
ErrBi
override def hashCode(): Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Fail -> Any
Inherited from:
Fail
override def isFail: Boolean

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def isSucc: Boolean

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def map[B](f: Nothing => B): ErrBi[ExcNoExprAtN, B]

Classic map function as we see on a Scala Option or List.

Classic map function as we see on a Scala Option or List.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def succOrOther[EE >: ExcNoExprAtN <: Throwable, AA](otherErrBi: => ErrBi[EE, AA]): ErrBi[EE, AA]

Returns this if success, else returns the other ErrBi.

Returns this if success, else returns the other ErrBi.

Attributes

Definition Classes
Fail -> ErrBi
Inherited from:
Fail
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Fail -> Any
Inherited from:
Fail

Inherited fields

Attributes

Inherited from:
Fail