public final class FeatureError
extends java.lang.Object
implements java.io.Serializable, com.opencloud.util.FastSerializable
Modifier and Type | Class and Description |
---|---|
static class |
FeatureError.Cause |
Constructor and Description |
---|
FeatureError(java.io.DataInput in)
Deserialise a FastSerialized FeatureWarning.
|
FeatureError(FeatureError.Cause cause)
Create a feature error with an associated cause
|
FeatureError(FeatureError.Cause cause,
java.lang.String explanation)
Create a feature error with an associated cause and explanation
|
FeatureError(FeatureError.Cause cause,
java.lang.String explanation,
java.lang.Throwable associatedThrowable)
Create a feature error with an associated cause, an explanation and an associated exception
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAssociatedThrowableStacktrace() |
FeatureError.Cause |
getCause() |
java.lang.String |
getExplanation() |
boolean |
hasAssociatedThrowableStacktrace() |
boolean |
hasExplanation() |
void |
toStream(java.io.DataOutput stream) |
java.lang.String |
toString() |
public FeatureError(FeatureError.Cause cause)
cause
- the cause of the errorpublic FeatureError(FeatureError.Cause cause, java.lang.String explanation)
cause
- the cause of the errorexplanation
- description of the errorpublic FeatureError(FeatureError.Cause cause, java.lang.String explanation, java.lang.Throwable associatedThrowable)
cause
- the cause of the errorexplanation
- description of the errorassociatedThrowable
- an exception related to the errorpublic FeatureError(java.io.DataInput in) throws java.io.IOException
in
- input stream.java.io.IOException
public FeatureError.Cause getCause()
public boolean hasExplanation()
public java.lang.String getExplanation()
public boolean hasAssociatedThrowableStacktrace()
public java.lang.String getAssociatedThrowableStacktrace()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void toStream(java.io.DataOutput stream) throws java.io.IOException
toStream
in interface com.opencloud.util.FastSerializable
java.io.IOException
Copyright © OpenCloud. All Rights Reserved.