lib/services/ObjectService.js
function(exceptionName)
    {
        var app = this;
        var exception = {};
        try
        {
            if(app.exceptions.hasOwnProperty(exceptionName)){
                exception = app.exceptions[exceptionName];
            }else{                
                throw "not found";
            }
        }
        catch(e)
        {
            var objFilePath = path.join(app._path,"exceptions",exceptionName);
            if(fs.existsSync(objFilePath+".js"))
            {
                var exceptionConfig = require(objFilePath);
                if(typeof app.exceptions != "object") app.exceptions={};
                app.exceptions[exceptionName]= exceptionConfig;                    
                exception = exceptionConfig;
            }
        }
        return exception;
    }
function(exceptionName)
    {
        var app = this;
        var exception = {};
        try
        {
            if(app.exceptions.hasOwnProperty(exceptionName)){
                exception = app.exceptions[exceptionName];
            }else{                
                throw "not found";
            }
        }
        catch(e)
        {
            var objFilePath = path.join(app._path,"exceptions",exceptionName);
            if(fs.existsSync(objFilePath+".js"))
            {
                var exceptionConfig = require(objFilePath);
                if(typeof app.exceptions != "object") app.exceptions={};
                app.exceptions[exceptionName]= exceptionConfig;                    
                exception = exceptionConfig;
            }
        }
        return exception;
    }
function ( exceptionName ) { var app = this ; var exception = { } ; try { if ( app . exceptions . hasOwnProperty ( exceptionName ) ) { exception = app . exceptions [ exceptionName ] ; } else { throw "not found" ; } } catch ( e ) { var objFilePath = path . join ( app . _path , "exceptions" , exceptionName ) ; if ( fs . existsSync ( objFilePath + ".js" ) ) { var exceptionConfig = require ( objFilePath ) ; if ( typeof app . exceptions != "object" ) app . exceptions = { } ; app . exceptions [ exceptionName ] = exceptionConfig ; exception = exceptionConfig ; } } return exception ; }
Get specified openbiz pre-defined system exception.

This method it part of {@link openbiz.objects.Application},
please never call this directly by ObjectService.

if need to call this method, you have to use javascript's function.apply(applicationPointer,params)
please see sample
@memberof openbiz.services.ObjectService
@param {string} exceptionName
@returns object Exception object

@example
var Exception = app.openbiz.apps.xxxx.getExecption("Exception");

throw new Exception(exceptionCode, error);
Get specified openbiz pre - defined system exception .