org.opengts.db.dmtp
Class ClientErrors

java.lang.Object
  extended by org.opengts.db.dmtp.ClientErrors
All Implemented Interfaces:
org.opendmtp.codes.ClientErrors

public class ClientErrors
extends java.lang.Object
implements org.opendmtp.codes.ClientErrors


Field Summary
 
Fields inherited from interface org.opendmtp.codes.ClientErrors
ERROR_COMMAND_ERROR, ERROR_COMMAND_INVALID, ERROR_GPS_EXPIRED, ERROR_GPS_FAILURE, ERROR_INTERNAL_ERROR_00, ERROR_INTERNAL_ERROR_01, ERROR_INTERNAL_ERROR_02, ERROR_INTERNAL_ERROR_03, ERROR_INTERNAL_ERROR_04, ERROR_INTERNAL_ERROR_05, ERROR_INTERNAL_ERROR_0F, ERROR_OUT_OF_MEMORY, ERROR_PACKET_ACK, ERROR_PACKET_CHECKSUM, ERROR_PACKET_ENCODING, ERROR_PACKET_HEADER, ERROR_PACKET_LENGTH, ERROR_PACKET_PAYLOAD, ERROR_PACKET_TYPE, ERROR_PROPERTY_INVALID_ID, ERROR_PROPERTY_INVALID_VALUE, ERROR_PROPERTY_READ_ONLY, ERROR_PROPERTY_UNKNOWN_ERROR, ERROR_PROPERTY_WRITE_ONLY, ERROR_PROTOCOL_ERROR, ERROR_UPLOAD_CHECKSUM, ERROR_UPLOAD_FILE_NAME, ERROR_UPLOAD_HOST, ERROR_UPLOAD_LENGTH, ERROR_UPLOAD_OFFSET_GAP, ERROR_UPLOAD_OFFSET_OVERFLOW, ERROR_UPLOAD_OFFSET_OVERLAP, ERROR_UPLOAD_PACKET, ERROR_UPLOAD_SAVE, ERROR_UPLOAD_SERVER_ERROR, ERROR_UPLOAD_TYPE
 
Method Summary
static java.lang.String getDescription(int errCode)
          Gets the code description
static java.lang.String getStringValue(int errCode, boolean inclDesc, byte[] errData)
          Gets the Description and/or converts the specified binary value to a String
static java.lang.String getStringValue(int errCode, boolean inclDesc, byte[] errData, java.util.TimeZone tz)
          Gets the Description and/or converts the specified binary value to a String
static java.lang.String getStringValue(int errCode, byte[] errData)
          Gets the String representation of the specified data for the specified error code
static java.lang.String getStringValue(int errCode, byte[] errData, java.util.TimeZone tz)
          Gets the String representation of the specified data for the specified error code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDescription

public static java.lang.String getDescription(int errCode)
Gets the code description

Parameters:
errCode - The error code
Returns:
The error description

getStringValue

public static java.lang.String getStringValue(int errCode,
                                              byte[] errData)
Gets the String representation of the specified data for the specified error code

Parameters:
errCode - The error code
errData - The binary payload data
Returns:
The value String representation

getStringValue

public static java.lang.String getStringValue(int errCode,
                                              byte[] errData,
                                              java.util.TimeZone tz)
Gets the String representation of the specified data for the specified error code

Parameters:
errCode - The error code
errData - The binary payload data
tz - A TimeZone used convert any dates encountered
Returns:
The value String representation

getStringValue

public static java.lang.String getStringValue(int errCode,
                                              boolean inclDesc,
                                              byte[] errData)
Gets the Description and/or converts the specified binary value to a String

Parameters:
errCode - The error code
inclDesc - True to include the description, false to omit
errData - The binary payload data
Returns:
The value String representation

getStringValue

public static java.lang.String getStringValue(int errCode,
                                              boolean inclDesc,
                                              byte[] errData,
                                              java.util.TimeZone tz)
Gets the Description and/or converts the specified binary value to a String

Parameters:
errCode - The error code
inclDesc - True to include the description, false to omit
errData - The binary payload data
tz - A TimeZone used convert any dates encountered
Returns:
The Description and/or value String representation