public class JThrowable
extends org.apache.avro.specific.SpecificRecordBase
implements org.apache.avro.specific.SpecificRecord
| Modifier and Type | Class and Description |
|---|---|
static class |
JThrowable.Builder
RecordBuilder for JThrowable instances.
|
| Modifier and Type | Field and Description |
|---|---|
JThrowable |
cause
Deprecated.
|
String |
className
Deprecated.
|
String |
message
Deprecated.
|
static org.apache.avro.Schema |
SCHEMA$ |
List<JStackTraceElement> |
stackTrace
Deprecated.
|
List<JThrowable> |
suppressed
Deprecated.
|
| Constructor and Description |
|---|
JThrowable()
Default constructor.
|
JThrowable(String className,
String message,
List<JStackTraceElement> stackTrace,
JThrowable cause,
List<JThrowable> suppressed)
All-args constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(int field$) |
JThrowable |
getCause()
Gets the value of the 'cause' field.
|
String |
getClassName()
Gets the value of the 'className' field.
|
static org.apache.avro.Schema |
getClassSchema() |
String |
getMessage()
Gets the value of the 'message' field.
|
org.apache.avro.Schema |
getSchema() |
List<JStackTraceElement> |
getStackTrace()
Gets the value of the 'stackTrace' field.
|
List<JThrowable> |
getSuppressed()
Gets the value of the 'suppressed' field.
|
static JThrowable.Builder |
newBuilder()
Creates a new JThrowable RecordBuilder.
|
static JThrowable.Builder |
newBuilder(JThrowable.Builder other)
Creates a new JThrowable RecordBuilder by copying an existing Builder.
|
static JThrowable.Builder |
newBuilder(JThrowable other)
Creates a new JThrowable RecordBuilder by copying an existing JThrowable instance.
|
void |
put(int field$,
Object value$) |
void |
readExternal(ObjectInput in) |
void |
setCause(JThrowable value)
Sets the value of the 'cause' field.
|
void |
setClassName(String value)
Sets the value of the 'className' field.
|
void |
setMessage(String value)
Sets the value of the 'message' field.
|
void |
setStackTrace(List<JStackTraceElement> value)
Sets the value of the 'stackTrace' field.
|
void |
setSuppressed(List<JThrowable> value)
Sets the value of the 'suppressed' field.
|
void |
writeExternal(ObjectOutput out) |
public static final org.apache.avro.Schema SCHEMA$
@Deprecated public String className
@Deprecated public String message
@Deprecated public List<JStackTraceElement> stackTrace
@Deprecated public JThrowable cause
@Deprecated public List<JThrowable> suppressed
public JThrowable()
newBuilder().public JThrowable(String className, String message, List<JStackTraceElement> stackTrace, JThrowable cause, List<JThrowable> suppressed)
className - exception class namemessage - exception messagestackTrace - the stack tracecause - exception causesuppressed - suppressed exceptionspublic static org.apache.avro.Schema getClassSchema()
public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainergetSchema in class org.apache.avro.specific.SpecificRecordBasepublic Object get(int field$)
get in interface org.apache.avro.generic.IndexedRecordget in class org.apache.avro.specific.SpecificRecordBasepublic void put(int field$,
Object value$)
put in interface org.apache.avro.generic.IndexedRecordput in class org.apache.avro.specific.SpecificRecordBasepublic String getClassName()
public void setClassName(String value)
value - the value to set.public String getMessage()
public void setMessage(String value)
value - the value to set.public List<JStackTraceElement> getStackTrace()
public void setStackTrace(List<JStackTraceElement> value)
value - the value to set.public JThrowable getCause()
public void setCause(JThrowable value)
value - the value to set.public List<JThrowable> getSuppressed()
public void setSuppressed(List<JThrowable> value)
value - the value to set.public static JThrowable.Builder newBuilder()
public static JThrowable.Builder newBuilder(JThrowable.Builder other)
other - The existing builder to copy.public static JThrowable.Builder newBuilder(JThrowable other)
other - The existing instance to copy.public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizablereadExternal in class org.apache.avro.specific.SpecificRecordBaseIOExceptionCopyright © 2018 SPF4J. All rights reserved.