org.apache.hadoop.hbase.thrift.generated
Class IOError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.hadoop.hbase.thrift.generated.IOError
All Implemented Interfaces:
Serializable, Cloneable, Comparable<IOError>, org.apache.thrift.TBase<IOError._Fields>

public class IOError
extends Exception
implements org.apache.thrift.TBase<IOError._Fields>, Serializable, Cloneable, Comparable<IOError>

An IOError exception signals that an error occurred communicating to the Hbase master or an Hbase region server. Also used to return more general Hbase error conditions.

See Also:
Serialized Form

Nested Class Summary
static class IOError._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 String message
           
static Map<IOError._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Constructor Summary
IOError()
           
IOError(IOError other)
          Performs a deep copy on other.
IOError(String message)
           
 
Method Summary
 IOError clone()
          Deprecated. 
 int compareTo(IOError other)
           
 IOError deepCopy()
           
 boolean equals(IOError that)
           
 boolean equals(Object that)
           
 Object getFieldValue(int fieldId)
           
 Object getFieldValue(IOError._Fields field)
           
 String getMessage()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(IOError._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetMessage()
          Returns true if field message is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 void setFieldValue(int fieldID, Object value)
           
 void setFieldValue(IOError._Fields field, Object value)
           
 IOError setMessage(String message)
           
 void setMessageIsSet(boolean value)
           
 String toString()
           
 void unsetMessage()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

message

public String message

metaDataMap

public static final Map<IOError._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

IOError

public IOError()

IOError

public IOError(String message)

IOError

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

Method Detail

deepCopy

public IOError deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<IOError._Fields>

clone

@Deprecated
public IOError clone()
Deprecated. 

Overrides:
clone in class Object

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setMessage

public IOError setMessage(String message)

unsetMessage

public void unsetMessage()

isSetMessage

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


setMessageIsSet

public void setMessageIsSet(boolean value)

setFieldValue

public void setFieldValue(IOError._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<IOError._Fields>

setFieldValue

public void setFieldValue(int fieldID,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<IOError._Fields>

getFieldValue

public Object getFieldValue(IOError._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<IOError._Fields>

getFieldValue

public Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<IOError._Fields>

isSet

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

Specified by:
isSet in interface org.apache.thrift.TBase<IOError._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<IOError._Fields>

equals

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

equals

public boolean equals(IOError that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<IOError._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<IOError._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Throwable

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.