1 46 47 package org.codehaus.groovy.control; 48 49 import org.codehaus.groovy.GroovyExceptionInterface; 50 51 52 53 54 61 62 public class ConfigurationException extends RuntimeException implements GroovyExceptionInterface 63 { 64 65 68 protected Exception cause; 70 71 74 75 public ConfigurationException( Exception cause ) 76 { 77 super( cause.getMessage() ); 78 this.cause = cause; 79 } 80 81 82 85 86 public ConfigurationException( String message ) 87 { 88 super( message ); 89 } 90 91 92 93 96 97 public Throwable getCause() 98 { 99 return cause; 100 } 101 102 103 106 107 public boolean isFatal() 108 { 109 return true; 110 } 111 112 113 114 117 118 public void setFatal( boolean fatal ) 119 { 120 } 121 122 } 123 124 | Popular Tags |