public final class Bottom
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <A> java.lang.Error |
decons(A a,
Show<A> sa)
Represents a deconstruction failure that was non-exhaustive.
|
static <A> java.lang.Error |
decons(java.lang.Class<A> c)
Represents a deconstruction failure that was non-exhaustive.
|
static <T extends java.lang.Throwable> |
eMessage()
A function that returns the
getMessage for a throwable. |
static <A> P1<A> |
error_(java.lang.String s)
Provides a thunk that throws an error using the given message when evaluated.
|
static java.lang.Error |
error(java.lang.String s)
Returns an error to represent undefinedness in a computation with early failure using the given
message.
|
static <A,B> F<A,B> |
errorF(java.lang.String s)
Provides a function that throws an error using the given message, ignoring its argument.
|
static <T extends java.lang.Throwable> |
eToString()
A function that returns the
toString for a throwable. |
static java.lang.Error |
undefined()
Returns an error to represent undefinedness in a computation.
|
public static java.lang.Error undefined()
public static java.lang.Error error(java.lang.String s)
s
- The message to fail with.public static <A> P1<A> error_(java.lang.String s)
s
- The message to fail with.public static <A,B> F<A,B> errorF(java.lang.String s)
s
- The message to fail with.public static <A> java.lang.Error decons(A a, Show<A> sa)
a
- The value being deconstructed.sa
- The rendering for the value being deconstructed.public static <A> java.lang.Error decons(java.lang.Class<A> c)
c
- The type being deconstructed.public static <T extends java.lang.Throwable> F<T,java.lang.String> eToString()
toString
for a throwable.toString
for a throwable.public static <T extends java.lang.Throwable> F<T,java.lang.String> eMessage()
getMessage
for a throwable.getMessage
for a throwable.