Package com.zeroc.Ice

Class Exception

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
LocalException, SystemException

public abstract class Exception extends RuntimeException implements Cloneable
Base class for Ice local and system exceptions. Those exceptions are not checked so we inherit from java.lang.RuntimeException. User exceptions are checked exceptions and therefore inherit directly from java.lang.Exception.
See Also:
  • Field Details

  • Constructor Details

    • Exception

      public Exception()
    • Exception

      public Exception(Throwable cause)
  • Method Details

    • clone

      public Exception clone()
      Creates a copy of this exception.
      Overrides:
      clone in class Object
      Returns:
      The copy of this exception.
    • ice_name

      @Deprecated public String ice_name()
      Deprecated.
      ice_name() is deprecated, use ice_id() instead.
      Returns the name of this exception.
      Returns:
      The name of this exception.
    • ice_id

      public abstract String ice_id()
      Returns the type id of this exception.
      Returns:
      The type id of this exception.
    • toString

      public String toString()
      Returns a string representation of this exception.
      Overrides:
      toString in class Throwable
      Returns:
      A string representation of this exception.