Package jadex.bridge

Class ComponentCreationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ComponentCreationException
    extends java.lang.RuntimeException
    Thrown when component creation failed.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Object info
      The optional info.
      protected java.lang.String reason
      The reason.
      static java.lang.String REASON_COMPONENT_EXISTS
      Constant that indicates that the component already exists.
      static java.lang.String REASON_MODEL_ERROR
      Constant that indicates that a model has occurred.
      static java.lang.String REASON_NO_COMPONENT_FACTORY
      Constant that indicates that no component factory has been found.
      static java.lang.String REASON_WRONG_ID
      Constant that indicates that component has a wrong/errorneous id.
    • Constructor Summary

      Constructors 
      Constructor Description
      ComponentCreationException​(java.lang.String message, java.lang.String reason)
      Create an component termination exception.
      ComponentCreationException​(java.lang.String message, java.lang.String reason, java.lang.Object info)
      Create an component termination exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getInfo()
      Get the info.
      java.lang.String getReason()
      Get the reason.
      void setInfo​(java.lang.Object info)
      Set the info.
      void setReason​(java.lang.String reason)
      Set the reason.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • REASON_COMPONENT_EXISTS

        public static final java.lang.String REASON_COMPONENT_EXISTS
        Constant that indicates that the component already exists.
        See Also:
        Constant Field Values
      • REASON_WRONG_ID

        public static final java.lang.String REASON_WRONG_ID
        Constant that indicates that component has a wrong/errorneous id.
        See Also:
        Constant Field Values
      • REASON_MODEL_ERROR

        public static final java.lang.String REASON_MODEL_ERROR
        Constant that indicates that a model has occurred.
        See Also:
        Constant Field Values
      • REASON_NO_COMPONENT_FACTORY

        public static final java.lang.String REASON_NO_COMPONENT_FACTORY
        Constant that indicates that no component factory has been found.
        See Also:
        Constant Field Values
      • reason

        protected java.lang.String reason
        The reason.
      • info

        protected java.lang.Object info
        The optional info.
    • Constructor Detail

      • ComponentCreationException

        public ComponentCreationException​(java.lang.String message,
                                          java.lang.String reason)
        Create an component termination exception.
      • ComponentCreationException

        public ComponentCreationException​(java.lang.String message,
                                          java.lang.String reason,
                                          java.lang.Object info)
        Create an component termination exception.
    • Method Detail

      • getReason

        public java.lang.String getReason()
        Get the reason.
        Returns:
        The reason.
      • setReason

        public void setReason​(java.lang.String reason)
        Set the reason.
        Parameters:
        reason - The reason to set.
      • getInfo

        public java.lang.Object getInfo()
        Get the info.
        Returns:
        the info.
      • setInfo

        public void setInfo​(java.lang.Object info)
        Set the info.
        Parameters:
        info - The info to set.