Sha256: 67f17a84cb1ed7b517b5ac945c15e0587f40d496e2674bce1606301ac9881549

Contents?: true

Size: 695 Bytes

Versions: 22

Compression:

Stored size: 695 Bytes

Contents

/**
 * Create a new Exception object.
 * name: The name of the exception.
 * message: The exception message.
 */
function Exception(name, message)
{
    if (name)
        this.name = name;
    if (message)
        this.message = message;
}

/**
 * Set the name of the exception. 
 */
Exception.prototype.setName = function(name)
{
    this.name = name;
}

/**
 * Get the exception's name. 
 */
Exception.prototype.getName = function()
{
    return this.name;
}

/**
 * Set a message on the exception. 
 */
Exception.prototype.setMessage = function(msg)
{
    this.message = msg;
}

/**
 * Get the exception message. 
 */
Exception.prototype.getMessage = function()
{
    return this.message;
}

Version data entries

22 entries across 11 versions & 2 rubygems

Version Path
derailed-ziya-2.1.0 examples/maps/public/maps/js/Exception.js
derailed-ziya-2.1.0 resources/maps/js/Exception.js
derailed-ziya-2.1.1 examples/maps/public/maps/js/Exception.js
derailed-ziya-2.1.1 resources/maps/js/Exception.js
derailed-ziya-2.1.2 resources/maps/js/Exception.js
derailed-ziya-2.1.2 examples/maps/public/maps/js/Exception.js
derailed-ziya-2.1.3 resources/maps/js/Exception.js
derailed-ziya-2.1.3 examples/maps/public/maps/js/Exception.js
derailed-ziya-2.1.4 resources/maps/js/Exception.js
derailed-ziya-2.1.4 examples/maps/public/maps/js/Exception.js
derailed-ziya-2.1.5 resources/maps/js/Exception.js
derailed-ziya-2.1.5 examples/maps/public/maps/js/Exception.js
ziya-2.3.0 examples/maps/public/maps/js/Exception.js
ziya-2.3.0 resources/maps/js/Exception.js
ziya-2.1.9 examples/maps/public/maps/js/Exception.js
ziya-2.1.9 resources/maps/js/Exception.js
ziya-2.1.8 examples/maps/public/maps/js/Exception.js
ziya-2.1.8 resources/maps/js/Exception.js
ziya-2.1.7 resources/maps/js/Exception.js
ziya-2.1.7 examples/maps/public/maps/js/Exception.js