public abstract class SpecificErrorBuilderBase<T extends SpecificExceptionBase> extends RecordBuilderBase<T> implements ErrorBuilder<T>
| Modifier | Constructor and Description |
|---|---|
protected |
SpecificErrorBuilderBase(Schema schema)
Creates a SpecificErrorBuilderBase for building errors of the given type.
|
protected |
SpecificErrorBuilderBase(SpecificErrorBuilderBase<T> other)
SpecificErrorBuilderBase copy constructor.
|
protected |
SpecificErrorBuilderBase(T other)
Creates a SpecificErrorBuilderBase by copying an existing error instance.
|
| Modifier and Type | Method and Description |
|---|---|
SpecificErrorBuilderBase<T> |
clearCause()
Clears the cause
|
SpecificErrorBuilderBase<T> |
clearValue()
Clears the value
|
Throwable |
getCause()
Gets the error cause
|
Object |
getValue()
Gets the value
|
boolean |
hasCause()
Checks whether the cause has been set
|
boolean |
hasValue()
Checks whether the value has been set
|
SpecificErrorBuilderBase<T> |
setCause(Throwable cause)
Sets the error cause
|
SpecificErrorBuilderBase<T> |
setValue(Object value)
Sets the value
|
data, defaultValue, equals, fields, fieldSetFlags, hashCode, isValidValue, schema, validateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuildprotected SpecificErrorBuilderBase(Schema schema)
schema - the schema associated with the error class.protected SpecificErrorBuilderBase(SpecificErrorBuilderBase<T> other)
other - SpecificErrorBuilderBase instance to copy.protected SpecificErrorBuilderBase(T other)
other - the error instance to copy.public Object getValue()
ErrorBuildergetValue in interface ErrorBuilder<T extends SpecificExceptionBase>public SpecificErrorBuilderBase<T> setValue(Object value)
ErrorBuildersetValue in interface ErrorBuilder<T extends SpecificExceptionBase>public boolean hasValue()
ErrorBuilderhasValue in interface ErrorBuilder<T extends SpecificExceptionBase>public SpecificErrorBuilderBase<T> clearValue()
ErrorBuilderclearValue in interface ErrorBuilder<T extends SpecificExceptionBase>public Throwable getCause()
ErrorBuildergetCause in interface ErrorBuilder<T extends SpecificExceptionBase>public SpecificErrorBuilderBase<T> setCause(Throwable cause)
ErrorBuildersetCause in interface ErrorBuilder<T extends SpecificExceptionBase>public boolean hasCause()
ErrorBuilderhasCause in interface ErrorBuilder<T extends SpecificExceptionBase>public SpecificErrorBuilderBase<T> clearCause()
ErrorBuilderclearCause in interface ErrorBuilder<T extends SpecificExceptionBase>Copyright © 2009–2020 The Apache Software Foundation. All rights reserved.