1 16 19 package org.apache.xml.utils.synthetic; 20 21 25 public class SynthesisException extends Exception 26 { 27 28 30 int code; 31 32 34 35 public static final int SYNTAX = 0; 36 37 38 public static final int UNSUPPORTED = 1; 39 40 41 public static final int REIFIED = 2; 42 43 44 public static final int UNREIFIED = 3; 45 46 47 public static final int WRONG_OWNER = 4; 48 49 50 public static final String [] errToString = { 51 "(Syntax error; specific message should be passed in)", 52 "Feature not yet supported", 53 "Can't change features of 'real' class", 54 "Can't yet instantiate/invoke without 'real' class", 55 "Can't add Member to an object other than its declarer", }; 56 57 63 public SynthesisException(int code) 64 { 65 66 super(errToString[code]); 67 68 this.code = code; 69 } 70 71 78 public SynthesisException(int code, String msg) 79 { 80 81 super(msg); 82 83 this.code = code; 84 } 85 86 91 int getCode() 92 { 93 return code; 94 } 95 } 96 | Popular Tags |