Class DeprecatedAndRemovedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DeprecatedAndRemovedException
    extends java.lang.RuntimeException
    This exception is thrown from methods that are deprecated and supposed to be removed, but still exist as empty, non-functional stub methods. Such methods were not removed from the API, since they are used by customers not only from Java processes but also from Jython scripts (e.g., the API Script view or pre/post scripts of platforms and execution configs), where they would lead to runtime errors that are difficult to understand (due to the lack of a compiler in Jython). So, we throw this exception instead that will lead to better understandable messages.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DeprecatedAndRemovedException​(java.lang.String fullQualifiedName, int tptversion)
      Constructs a new DeprecatedAndRemovedException with the specified details.
    • 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

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

      • DeprecatedAndRemovedException

        public DeprecatedAndRemovedException​(java.lang.String fullQualifiedName,
                                             int tptversion)
        Constructs a new DeprecatedAndRemovedException with the specified details.
        Parameters:
        fullQualifiedName - The method that has been removed
        tptversion - The TPT version it has been removed