On this page:
A local Slice exception is mapped to a C# class with the same name. For example:
module Ice { local exception InitializationException { ... } } |
is mapped to the C# class InitializationException:
namespace Ice { public partial class InitializationException : LocalException { ... } } |
All mapped C# classes for local exceptions derive from LocalException
:
namespace Ice { [Serializable] public abstract class LocalException : Exception { public LocalException() {} public LocalException(System.Exception ex) { ... } ... } } |
A local Slice exception can extend another Slice exception, which is mapped to class inheritance in C#. For example:
module M { local exception ErrorBase {} local exception ResourceError extends ErrorBase {} } |
is mapped to:
namespace M { public partial class ErrorBase : Ice.LocalException { ... } public partial class ResourceError : ErrorBase { ... } } |