com.hp.hpl.jena.reasoner.dig
Class DIGErrorResponseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.hp.hpl.jena.shared.JenaException
                  extended by com.hp.hpl.jena.reasoner.dig.DIGReasonerException
                      extended by com.hp.hpl.jena.reasoner.dig.DIGErrorResponseException
All Implemented Interfaces:
Serializable

public class DIGErrorResponseException
extends DIGReasonerException

An exception that encapsulates an error response from the DIG server, including error number and message.

Version:
Release @release@ ($Id: DIGErrorResponseException.java,v 1.4 2004/12/07 09:56:35 andy_seaborne Exp $)
Author:
Ian Dickinson, HP Labs (email)
See Also:
Serialized Form

Field Summary
static int CANNOT_CREATE_NEW_KB
           
static int GENERAL_ASK_ERROR
           
static int GENERAL_TELL_ERROR
           
static int GENERAL_UNSPECIFIED_ERROR
           
static int KB_RELEASE_ERROR
           
static int MAFORMED_REQUEST
           
static int MALFORMED_KB_URI
           
static int MISSING_URI
           
static int UNKNOWN_ASK_OPERATION
           
static int UNKNOWN_OR_STALE_KB_URI
           
static int UNKNOWN_REQUEST
           
static int UNKNOWN_TELL_OPERATION
           
static int UNSUPPORTED_ASK_OPERATION
           
static int UNSUPPORTED_OPERATION
           
static int UNSUPPORTED_TELL_OPERATION
           
 
Constructor Summary
DIGErrorResponseException(String msg, String msgAttr, int errorCode)
           
 
Method Summary
 int getErrorCode()
          Answer the error code sent back by DIG.
 String getMessage()
          Answer the error message sent back by DIG.
 
Methods inherited from class com.hp.hpl.jena.shared.JenaException
getCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERAL_UNSPECIFIED_ERROR

public static final int GENERAL_UNSPECIFIED_ERROR
See Also:
Constant Field Values

UNKNOWN_REQUEST

public static final int UNKNOWN_REQUEST
See Also:
Constant Field Values

MAFORMED_REQUEST

public static final int MAFORMED_REQUEST
See Also:
Constant Field Values

UNSUPPORTED_OPERATION

public static final int UNSUPPORTED_OPERATION
See Also:
Constant Field Values

CANNOT_CREATE_NEW_KB

public static final int CANNOT_CREATE_NEW_KB
See Also:
Constant Field Values

MALFORMED_KB_URI

public static final int MALFORMED_KB_URI
See Also:
Constant Field Values

UNKNOWN_OR_STALE_KB_URI

public static final int UNKNOWN_OR_STALE_KB_URI
See Also:
Constant Field Values

KB_RELEASE_ERROR

public static final int KB_RELEASE_ERROR
See Also:
Constant Field Values

MISSING_URI

public static final int MISSING_URI
See Also:
Constant Field Values

GENERAL_TELL_ERROR

public static final int GENERAL_TELL_ERROR
See Also:
Constant Field Values

UNSUPPORTED_TELL_OPERATION

public static final int UNSUPPORTED_TELL_OPERATION
See Also:
Constant Field Values

UNKNOWN_TELL_OPERATION

public static final int UNKNOWN_TELL_OPERATION
See Also:
Constant Field Values

GENERAL_ASK_ERROR

public static final int GENERAL_ASK_ERROR
See Also:
Constant Field Values

UNSUPPORTED_ASK_OPERATION

public static final int UNSUPPORTED_ASK_OPERATION
See Also:
Constant Field Values

UNKNOWN_ASK_OPERATION

public static final int UNKNOWN_ASK_OPERATION
See Also:
Constant Field Values
Constructor Detail

DIGErrorResponseException

public DIGErrorResponseException(String msg,
                                 String msgAttr,
                                 int errorCode)
Method Detail

getErrorCode

public int getErrorCode()

Answer the error code sent back by DIG. Well known error codes are listed as constants exported from this class.

Returns:
The DIG error code; the value of the code attribute in the error response returned by the reasoner.

getMessage

public String getMessage()

Answer the error message sent back by DIG.

Overrides:
getMessage in class Throwable
Returns:
The DIG error message; the value of the msg attribute in the error response returned by the reasoner


Copyright © 2000, 2001, 2002, 2003, 2004 Hewlett-Packard Development Company, LP