libs/commandio.js
function CommandError(message, command, level){
	var that = this, error;

	// Set the default level.
	if( isNaN(level) || level < 1 || level > 3) level = CONST.errorLvl.error;

	// Format the message
	if(typeof command == 'string') message = '{'+command+'} '+message;
	message = '[command.io] '+message;

	// Create the native Error object.
	error = new Error(message);

	// Create the getter for native error properties and custom properties.
	Object.defineProperties(this, {
		'stack': {
			get: function(){
				return error.stack;
			}
		},
		message: {
			get: function(){
				return error.message;
			}
		},
		command: {
			get: function(){
				return command;
			}
		},
		level: {
			get: function(){
				return level;
			}
		}
	});
}
function CommandError(message, command, level){
	var that = this, error;

	// Set the default level.
	if( isNaN(level) || level < 1 || level > 3) level = CONST.errorLvl.error;

	// Format the message
	if(typeof command == 'string') message = '{'+command+'} '+message;
	message = '[command.io] '+message;

	// Create the native Error object.
	error = new Error(message);

	// Create the getter for native error properties and custom properties.
	Object.defineProperties(this, {
		'stack': {
			get: function(){
				return error.stack;
			}
		},
		message: {
			get: function(){
				return error.message;
			}
		},
		command: {
			get: function(){
				return command;
			}
		},
		level: {
			get: function(){
				return level;
			}
		}
	});
}
function CommandError ( message , command , level ) { var that = this , error ; // Set the default level. if ( isNaN ( level ) || level < 1 || level > 3 ) level = CONST . errorLvl . error ; // Format the message if ( typeof command == 'string' ) message = '{' + command + '} ' + message ; message = '[command.io] ' + message ; // Create the native Error object. error = new Error ( message ) ; // Create the getter for native error properties and custom properties. Object . defineProperties ( this , { 'stack' : { get : function ( ) { return error . stack ; } } , message : { get : function ( ) { return error . message ; } } , command : { get : function ( ) { return command ; } } , level : { get : function ( ) { return level ; } } } ) ; }
ERRORS 
Custom error object to manage exceptions on command's action.
@param string message The error message.
@param string command The command name what throw the error.
@param int level The severity level (1,2 or 3 to notice, error, critical).
@constructor
ERRORS Custom error object to manage exceptions on command s action .