Class CayenneRuntimeException

    • Constructor Detail

      • CayenneRuntimeException

        public CayenneRuntimeException()
        Creates new CayenneRuntimeException without detail message.
      • CayenneRuntimeException

        public CayenneRuntimeException​(String messageFormat,
                                       Object... messageArgs)
        Constructs an exception with the specified message and an optional list of message formatting arguments. Message formatting rules follow "String.format(..)" conventions.
      • CayenneRuntimeException

        public CayenneRuntimeException​(Throwable cause)
        Constructs an CayenneRuntimeException that wraps exception thrown elsewhere.
      • CayenneRuntimeException

        public CayenneRuntimeException​(String messageFormat,
                                       Throwable cause,
                                       Object... messageArgs)
        Constructs an exception with the specified message and exception cause and an optional list of message formatting arguments. Message formatting rules follow "String.format(..)" conventions.
    • Method Detail

      • getExceptionLabel

        public static String getExceptionLabel()
        Since:
        4.1 moved from deprecated CayenneException
      • getUnlabeledMessage

        public String getUnlabeledMessage()
        Returns exception message without Cayenne version label.
        Since:
        1.1
      • getMessage

        public String getMessage()
        Returns message that includes Cayenne version label and the actual exception message.
        Overrides:
        getMessage in class Throwable