1 19 20 package com.hp.hpl.jena.reasoner.dig; 23 24 25 28 37 public class DIGErrorResponseException 38 extends DIGReasonerException 39 { 40 43 public static final int GENERAL_UNSPECIFIED_ERROR = 100; 44 public static final int UNKNOWN_REQUEST = 101; 45 public static final int MAFORMED_REQUEST = 102; 46 public static final int UNSUPPORTED_OPERATION = 103; 47 48 public static final int CANNOT_CREATE_NEW_KB = 201; 49 public static final int MALFORMED_KB_URI = 202; 50 public static final int UNKNOWN_OR_STALE_KB_URI = 203; 51 public static final int KB_RELEASE_ERROR = 204; 52 public static final int MISSING_URI = 205; 53 54 public static final int GENERAL_TELL_ERROR = 301; 55 public static final int UNSUPPORTED_TELL_OPERATION = 302; 56 public static final int UNKNOWN_TELL_OPERATION = 303; 57 58 public static final int GENERAL_ASK_ERROR = 401; 59 public static final int UNSUPPORTED_ASK_OPERATION = 402; 60 public static final int UNKNOWN_ASK_OPERATION = 403; 61 62 63 66 69 70 private String m_msgAttr; 71 72 73 private int m_errorCode; 74 75 76 79 public DIGErrorResponseException( String msg, String msgAttr, int errorCode ) { 80 super( "DIG error: " + msg ); 81 m_msgAttr = msgAttr; 82 m_errorCode = errorCode; 83 } 84 85 86 89 95 public int getErrorCode() { 96 return m_errorCode; 97 } 98 99 100 105 public String getMessage() { 106 return m_msgAttr; 107 } 108 109 110 113 117 } 118 119 120 146 | Popular Tags |