On this page:
A local Slice exception is mapped to a Java class with the same name. For example:
module Ice { local exception InitializationException { ... } } |
is mapped to the Java class InitializationException:
package Ice; public class InitializationException extends LocalException { ... } |
All mapped Java classes for local exceptions extend the abstract class LocalException
:
package Ice; public abstract class LocalException extends Exception { public LocalException() {} public LocalException(Throwable cause) { ... } } |
A local Slice exception can extend another Slice exception, which is mapped to extends
in Java. For example:
module M { local exception ErrorBase {} local exception ResourceError extends ErrorBase {} } |
is mapped to:
package M; public class ErrorBase extends com.zeroc.Ice.LocalException { ... } public class ResourceError extends ErrorBase { ... } |