1 5 6 package org.joseki.server; 7 8 12 13 public class ExecutionError 14 { 15 static public final int rcOK = 0 ; 16 static public final int rcNoSuchQueryLanguage = 3 ; 17 static public final int rcInternalError = 4 ; 18 static public final int rcRDFException = 5 ; 19 static public final int rcNoSuchURI = 6 ; 20 static public final int rcSecurityError = 7 ; 21 static public final int rcOperationNotSupported = 8 ; 22 static public final int rcArgumentUnreadable = 9 ; 23 static public final int rcImmutableModel = 10 ; 24 static public final int rcConfigurationError = 11 ; 25 static public final int rcArgumentError = 12 ; 26 27 static public final int rcQueryParseFailure = 100 ; 28 static public final int rcQueryExecutionFailure = 101 ; 29 static public final int rcQueryUnknownFormat = 102 ; 30 31 32 33 static public String messages[] = 34 { "OK", 35 "Query parsing failed", 36 "Query excution failed", 37 "No such query language", 38 "Internal Error", 39 "RDFException" , 40 "No such URI" , 41 "Access control failure", 42 "Operation not supported on URI", 43 "Argument to operation is unreadable" , 44 "Immutable model" , 45 "Incorrect configuration" , 46 "Error in arguments", 47 null }; 49 50 static public String errorString(int rc) 51 { 52 if ( rc < 0 || rc >= messages.length-1 ) 54 return "Unknown error" ; 55 56 return messages[rc] ; 57 } 58 } 59 60 86 | Popular Tags |