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, validate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
build
protected 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()
ErrorBuilder
getValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> setValue(Object value)
ErrorBuilder
setValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public boolean hasValue()
ErrorBuilder
hasValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> clearValue()
ErrorBuilder
clearValue
in interface ErrorBuilder<T extends SpecificExceptionBase>
public Throwable getCause()
ErrorBuilder
getCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> setCause(Throwable cause)
ErrorBuilder
setCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public boolean hasCause()
ErrorBuilder
hasCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
public SpecificErrorBuilderBase<T> clearCause()
ErrorBuilder
clearCause
in interface ErrorBuilder<T extends SpecificExceptionBase>
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.