com.javonet

Class JavonetException

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • com.javonet.JavonetException
  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NException

    public class JavonetException
    extends java.lang.Exception
    A class representing any .NET side exception or exception that occurred in Javonet
    during JAVA <-> .NET communicator.

    All .NET exceptions are wrapped by JavonetException by placing whole content of ToString
    representation of .NET exception into message of JavonetException class.

    Since Javonet 1.5 this class by default represent only the Javonet exceptions which
    occur either on .NET side or within the Javonet internals.

    All .NET exceptions raised by .NET side are raised as NException
    which provides multiple additional information instead of pure string representation of
    error message with stack trace. Read more in NException section.

    For backward compatibility and to simplify migration we have exposed the ability to force
    usage of previous behavior based on JavonetException only.

    To tell Javonet to use old exceptions handling mechanism call Javonet.setUseLegacyExceptions(boolean) method.

    Version:
    1.0
    See Also:
    Serialized Form


    • Constructor Summary

      Constructors 
      Constructor and Description
      JavonetException(java.lang.String message)

      Creates new instance of JavonetException with specified message.
      JavonetException(java.lang.String message,
      java.lang.Throwable childException)
       



    • Method Summary



      • 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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait



    • Constructor Detail



      • JavonetException

        public JavonetException(java.lang.String message)
        Creates new instance of JavonetException with specified message.
        Parameters:
        message – Exception message



      • JavonetException

        public JavonetException(java.lang.String message,
                                java.lang.Throwable childException)