lib/index.js
function customError(name, error) {
  return {
    error: error,
    message: error.message,
    name: name
  };
}
function customError(name, error) {
  return {
    error: error,
    message: error.message,
    name: name
  };
}
function customError ( name , error ) { return { error : error , message : error . message , name : name } ; }
customError
return an object forming a custom error message
@param  {String} name
@param  {Object} error
@return {Object}
customError return an object forming a custom error message