1 18 package org.apache.beehive.netui.script; 19 20 22 24 26 30 public class ExpressionEvaluationException 31 extends Exception { 32 33 private String expression = null; 34 private String [] contexts = null; 35 private String localizedMessage = null; 36 37 40 public ExpressionEvaluationException() { 41 super(); 42 } 43 44 51 public ExpressionEvaluationException(String message, String expression) { 52 super(message); 53 this.expression = expression; 54 } 55 56 64 public ExpressionEvaluationException(String message, String expression, Throwable cause) { 65 super(message, cause); 66 this.expression = expression; 67 } 68 69 75 public ExpressionEvaluationException(String expression, Throwable cause) { 76 super(cause); 77 this.expression = expression; 78 } 79 80 85 public String getExpression() { 86 return expression; 87 } 88 89 95 public void setAvailableContexts(String [] contexts) { 96 this.contexts = contexts; 97 } 98 99 106 public String [] getAvailableContexts() { 107 return contexts; 108 } 109 110 public void setLocalizedMessage(String localizedMessage) { 111 this.localizedMessage = localizedMessage; 112 } 113 114 public String getLocalizedMessage() { 115 return localizedMessage; 116 } 117 } 118 | Popular Tags |