1 19 20 package org.apache.cayenne; 21 22 28 public class CayenneRuntimeException extends RuntimeException { 29 30 33 public CayenneRuntimeException() { 34 } 35 36 42 public CayenneRuntimeException(String message) { 43 super(message); 44 } 45 46 50 public CayenneRuntimeException(Throwable cause) { 51 super(cause); 52 } 53 54 public CayenneRuntimeException(String message, Throwable cause) { 55 super(message, cause); 56 } 57 58 63 public String getUnlabeledMessage() { 64 return super.getMessage(); 65 } 66 67 71 public String getMessage() { 72 String message = super.getMessage(); 73 return (message != null) 74 ? CayenneException.getExceptionLabel() + message 75 : CayenneException.getExceptionLabel() + "(no message)"; 76 } 77 } 78 | Popular Tags |