org.apache.blur.thrift.generated
Class BlurException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.blur.thirdparty.thrift_0_9_0.TException
              extended by org.apache.blur.thrift.generated.BlurException
All Implemented Interfaces:
Serializable, Cloneable, Comparable<BlurException>, TBase<BlurException,BlurException._Fields>
Direct Known Subclasses:
BException

public class BlurException
extends TException
implements TBase<BlurException,BlurException._Fields>, Serializable, Cloneable

BlurException that carries a message plus the original stack trace (if any).

See Also:
Serialized Form

Nested Class Summary
static class BlurException._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ErrorType errorType
           
 String message
          The message in the exception.
static Map<BlurException._Fields,FieldMetaData> metaDataMap
           
 String stackTraceStr
          The original stack trace (if any).
 
Constructor Summary
BlurException()
           
BlurException(BlurException other)
          Performs a deep copy on other.
BlurException(String message, String stackTraceStr, ErrorType errorType)
           
 
Method Summary
 void clear()
          Return to the state of having just been initialized, as though you had just called the default constructor.
 int compareTo(BlurException other)
           
 BlurException deepCopy()
           
 boolean equals(BlurException that)
           
 boolean equals(Object that)
           
 BlurException._Fields fieldForId(int fieldId)
          Get the F instance that corresponds to fieldId.
 ErrorType getErrorType()
           
 Object getFieldValue(BlurException._Fields field)
          Get a field's value by field variable.
 String getMessage()
          The message in the exception.
 String getStackTraceStr()
          The original stack trace (if any).
 int hashCode()
           
 boolean isSet(BlurException._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetErrorType()
          Returns true if field errorType is set (has been assigned a value) and false otherwise
 boolean isSetMessage()
          Returns true if field message is set (has been assigned a value) and false otherwise
 boolean isSetStackTraceStr()
          Returns true if field stackTraceStr is set (has been assigned a value) and false otherwise
 void read(TProtocol iprot)
          Reads the TObject from the given input protocol.
 BlurException setErrorType(ErrorType errorType)
           
 void setErrorTypeIsSet(boolean value)
           
 void setFieldValue(BlurException._Fields field, Object value)
          Set a field's value by field variable.
 BlurException setMessage(String message)
          The message in the exception.
 void setMessageIsSet(boolean value)
           
 BlurException setStackTraceStr(String stackTraceStr)
          The original stack trace (if any).
 void setStackTraceStrIsSet(boolean value)
           
 String toString()
           
 void unsetErrorType()
           
 void unsetMessage()
           
 void unsetStackTraceStr()
           
 void validate()
           
 void write(TProtocol oprot)
          Writes the objects out to the protocol
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public String message
The message in the exception.


stackTraceStr

public String stackTraceStr
The original stack trace (if any).


errorType

public ErrorType errorType
See Also:
ErrorType

metaDataMap

public static final Map<BlurException._Fields,FieldMetaData> metaDataMap
Constructor Detail

BlurException

public BlurException()

BlurException

public BlurException(String message,
                     String stackTraceStr,
                     ErrorType errorType)

BlurException

public BlurException(BlurException other)
Performs a deep copy on other.

Method Detail

deepCopy

public BlurException deepCopy()
Specified by:
deepCopy in interface TBase<BlurException,BlurException._Fields>

clear

public void clear()
Description copied from interface: TBase
Return to the state of having just been initialized, as though you had just called the default constructor.

Specified by:
clear in interface TBase<BlurException,BlurException._Fields>

getMessage

public String getMessage()
The message in the exception.

Overrides:
getMessage in class Throwable

setMessage

public BlurException setMessage(String message)
The message in the exception.


unsetMessage

public void unsetMessage()

isSetMessage

public boolean isSetMessage()
Returns true if field message is set (has been assigned a value) and false otherwise


setMessageIsSet

public void setMessageIsSet(boolean value)

getStackTraceStr

public String getStackTraceStr()
The original stack trace (if any).


setStackTraceStr

public BlurException setStackTraceStr(String stackTraceStr)
The original stack trace (if any).


unsetStackTraceStr

public void unsetStackTraceStr()

isSetStackTraceStr

public boolean isSetStackTraceStr()
Returns true if field stackTraceStr is set (has been assigned a value) and false otherwise


setStackTraceStrIsSet

public void setStackTraceStrIsSet(boolean value)

getErrorType

public ErrorType getErrorType()
See Also:
ErrorType

setErrorType

public BlurException setErrorType(ErrorType errorType)
See Also:
ErrorType

unsetErrorType

public void unsetErrorType()

isSetErrorType

public boolean isSetErrorType()
Returns true if field errorType is set (has been assigned a value) and false otherwise


setErrorTypeIsSet

public void setErrorTypeIsSet(boolean value)

setFieldValue

public void setFieldValue(BlurException._Fields field,
                          Object value)
Description copied from interface: TBase
Set a field's value by field variable. Primitive types must be "boxed" in the appropriate object wrapper type.

Specified by:
setFieldValue in interface TBase<BlurException,BlurException._Fields>

getFieldValue

public Object getFieldValue(BlurException._Fields field)
Description copied from interface: TBase
Get a field's value by field variable. Primitive types will be wrapped in the appropriate "boxed" types.

Specified by:
getFieldValue in interface TBase<BlurException,BlurException._Fields>

isSet

public boolean isSet(BlurException._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface TBase<BlurException,BlurException._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(BlurException that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(BlurException other)
Specified by:
compareTo in interface Comparable<BlurException>

fieldForId

public BlurException._Fields fieldForId(int fieldId)
Description copied from interface: TBase
Get the F instance that corresponds to fieldId.

Specified by:
fieldForId in interface TBase<BlurException,BlurException._Fields>

read

public void read(TProtocol iprot)
          throws TException
Description copied from interface: TBase
Reads the TObject from the given input protocol.

Specified by:
read in interface TBase<BlurException,BlurException._Fields>
Parameters:
iprot - Input protocol
Throws:
TException

write

public void write(TProtocol oprot)
           throws TException
Description copied from interface: TBase
Writes the objects out to the protocol

Specified by:
write in interface TBase<BlurException,BlurException._Fields>
Parameters:
oprot - Output protocol
Throws:
TException

toString

public String toString()
Overrides:
toString in class Throwable

validate

public void validate()
              throws TException
Throws:
TException


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.