|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.Bottom
public final class Bottom
Represents the bottom _|_ value.
Method Summary | ||
---|---|---|
static
|
decons(A a,
Show<A> sa)
Represents a deconstruction failure that was non-exhaustive. |
|
static
|
decons(Class<A> c)
Represents a deconstruction failure that was non-exhaustive. |
|
static
|
eMessage()
A function that returns the getMessage for a throwable. |
|
static P1<Error> |
error_(String s)
Provides a thunk that throws an error using the given message when evaluated. |
|
static Error |
error(String s)
Returns an error to represent undefinedness in a computation with early failure using the given message. |
|
static
|
errorF(String s)
Provides a function that throws an error using the given message, ignoring its argument. |
|
static
|
eToString()
A function that returns the toString for a throwable. |
|
static Error |
undefined()
Returns an error to represent undefinedness in a computation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Error undefined()
public static Error error(String s)
s
- The message to fail with.
public static P1<Error> error_(String s)
s
- The message to fail with.
public static <A,B> F<A,B> errorF(String s)
s
- The message to fail with.
public static <A> Error decons(A a, Show<A> sa)
a
- The value being deconstructed.sa
- The rendering for the value being deconstructed.
public static <A> Error decons(Class<A> c)
c
- The type being deconstructed.
public static <T extends Throwable> F<T,String> eToString()
toString
for a throwable.
toString
for a throwable.public static <T extends Throwable> F<T,String> eMessage()
getMessage
for a throwable.
getMessage
for a throwable.
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |