public class FaultUtils extends Object
| Constructor and Description |
|---|
FaultUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <E extends GCUBEFault> |
newFault(E fault,
Throwable localCause)
Returns a given fault after serialising into it an original cause.
|
static Throwable |
remoteCause(GCUBEFault fault)
Returns the remote cause of a
Fault as a Throwable |
public static <E extends GCUBEFault> E newFault(E fault, Throwable localCause)
E - the type of the faultfault - the faultlocalCause - the causepublic static Throwable remoteCause(GCUBEFault fault)
Fault as a Throwablefault - the faultThrowableCopyright © 2015. All Rights Reserved.