Class NewInstanceException

  • All Implemented Interfaces:
    Serializable

    public class NewInstanceException
    extends OMAGCheckedExceptionBase
    NewInstanceException is thrown if the OMAG service is not able to register a new instance of itself in its instance map.
    See Also:
    Serialized Form
    • Constructor Detail

      • NewInstanceException

        public NewInstanceException​(ExceptionMessageDefinition messageDefinition,
                                    String className,
                                    String actionDescription)
        This is the typical constructor used for creating an NewInstanceException.
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
      • NewInstanceException

        public NewInstanceException​(ExceptionMessageDefinition messageDefinition,
                                    String className,
                                    String actionDescription,
                                    Map<String,​Object> relatedProperties)
        This is the typical constructor used for creating an NewInstanceException. The properties allow additional information to be associated with the exception.
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
        relatedProperties - arbitrary properties that may help with diagnosing the problem.
      • NewInstanceException

        public NewInstanceException​(ExceptionMessageDefinition messageDefinition,
                                    String className,
                                    String actionDescription,
                                    Throwable caughtError)
        This is the constructor used for creating an NewInstanceException when an unexpected error has been caught. The properties allow additional information to be associated with the exception.
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
        caughtError - previous error causing this exception
      • NewInstanceException

        public NewInstanceException​(ExceptionMessageDefinition messageDefinition,
                                    String className,
                                    String actionDescription,
                                    Throwable caughtError,
                                    Map<String,​Object> relatedProperties)
        This is the constructor used for creating an NewInstanceException when an unexpected error has been caught. The properties allow additional information to be associated with the exception.
        Parameters:
        messageDefinition - content of the message
        className - name of class reporting error
        actionDescription - description of function it was performing when error detected
        caughtError - previous error causing this exception
        relatedProperties - arbitrary properties that may help with diagnosing the problem.