How to use the ice.Ice.UserException function in ice

To help you get started, we’ve selected a few ice examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JdeRobot / WebSim2D / websim / js / Ice / exceptions.js View on Github external
function(what, _cause)
        {
            Ice.UserException.call(this, _cause);
            this.what = what !== undefined ? what : "";
        },
        Ice.UserException,
github JdeRobot / WebSim2D / websim / js / Ice / exceptions.js View on Github external
(function(module, require, exports)
{
    var Ice = require("ice").Ice;
    var __M = Ice.__M;
    var Slice = Ice.Slice;

    var jderobot = __M.module("jderobot");

    jderobot.JderobotException = Slice.defineUserException(
        function(what, _cause)
        {
            Ice.UserException.call(this, _cause);
            this.what = what !== undefined ? what : "";
        },
        Ice.UserException,
        "jderobot::JderobotException",
        function(__os)
        {
            __os.writeString(this.what);
        },
        function(__is)
        {
            this.what = __is.readString();
        },
        false,
        false);

    jderobot.ConfigurationNotExistException = Slice.defineUserException(
        function(what, _cause)
        {
            jderobot.JderobotException.call(this, what, _cause);