Bad
Contains a “bad” value.
You can decide what “bad” means, but it is expected Bad will be commonly used
to hold descriptions of an error (or several, accumulated errors). Some examples of possible error descriptions
are String error messages, Int error codes, Throwable exceptions,
or instances of a case class hierarchy designed to describe errors.
- Value parameters:
- b
the “bad” value
- Source:
- Or.scala
Value members
Concrete methods
Deprecated methods
The asOr method has been deprecated and will be removed in a future version of Scalactic.
Please remove invocations of asOr in expressions of type Good(value).orBad[Type] and
Good[Type].orBad(value) (which now return a type already widened to Or), otherwise please
use a type annotation to widen the type, such as: (Good(3): Int Or ErrorMessage).
The asOr method has been deprecated and will be removed in a future version of Scalactic.
Please remove invocations of asOr in expressions of type Good(value).orBad[Type] and
Good[Type].orBad(value) (which now return a type already widened to Or), otherwise please
use a type annotation to widen the type, such as: (Good(3): Int Or ErrorMessage).
- Deprecated
- Definition Classes
- Source:
- Or.scala