1 23 24 package com.sun.enterprise.deployment.annotation; 25 26 32 public class AnnotationProcessorException extends Exception { 33 34 final private String message; 35 36 final private AnnotationInfo locator; 37 38 boolean isFatal = false; 39 40 44 public AnnotationProcessorException(String message) { 45 this.message = message; 46 this.locator = null; 47 } 48 49 55 public AnnotationProcessorException(String message, AnnotationInfo locator) { 56 this.message = message; 57 this.locator = locator; 58 } 59 60 64 public String getMessage() { 65 return message; 66 } 67 68 73 public AnnotationInfo getLocator() { 74 return locator; 75 } 76 77 80 public String toString() { 81 return (locator==null?message:message + "at " + locator); 82 } 83 84 89 public boolean isFatal(){ 90 return isFatal; 91 } 92 93 98 public void setFatal(boolean fatal){ 99 this.isFatal = fatal; 100 } 101 } 102 | Popular Tags |