summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/UserException.m
blob: c31b321900bd10a0d42e252873cef9c01cdf2ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
classdef (Abstract) UserException < Ice.Exception
    % UserException   Summary of UserException
    %
    % Base class for Slice user exceptions.
    %
    % UserException Methods:
    %   ice_getSlicedData - Obtain the SlicedData object that contains the
    %     marshaled state of any slices for unknown exception types.

    % Copyright (c) ZeroC, Inc. All rights reserved.

    methods
        function obj = UserException(id, msg)
            obj = obj@Ice.Exception(id, msg);
        end
        % ice_getSlicedData - Obtain the SlicedData object that contains the
        %   marshaled state of any slices for unknown exception types.
        %
        % Returns (Ice.SlicedData) - The marshaled state of any slices for
        %   unknown exception types.

        function r = ice_getSlicedData(~)
            r = [];
        end
    end
    methods(Hidden=true)
        function obj = iceRead(obj, is)
            is.startException();
            obj = obj.iceReadImpl(is);
            is.endException(false);
        end
        function obj = icePostUnmarshal(obj)
            %
            % Overridden by subclasses that have class members.
            %
        end
    end
    methods(Abstract,Access=protected)
        obj = iceReadImpl(obj, is)
    end
end