1 19 20 package org.netbeans.api.java.source.query; 21 22 25 public class QueryException extends RuntimeException { 26 27 37 public QueryException(Throwable cause) { 38 super(cause); 39 } 40 41 47 public QueryException(String message) { 48 super(message); 49 } 50 51 public String toString() { 52 Throwable cause = getCause(); 53 return (cause != null) ? 54 ("QueryException: " + cause.toString()) : getMessage(); 55 } 56 57 static final long serialVersionUID = -7166849769175914785L; 58 } 59 | Popular Tags |