src/route.js
function extractErrorHandler(target, name) {
  if(name.indexOf('#') !== -1) {
    const [controller, action] = name.split('#');
    ErrorsHandler.push({
      target: target,
      controller,
      action,
    });
  } else {
    ErrorsHandler.push({
      target: target,
      controller: name,
    });
  }
}
function extractErrorHandler(target, name) {
  if(name.indexOf('#') !== -1) {
    const [controller, action] = name.split('#');
    ErrorsHandler.push({
      target: target,
      controller,
      action,
    });
  } else {
    ErrorsHandler.push({
      target: target,
      controller: name,
    });
  }
}
function extractErrorHandler ( target , name ) { if ( name . indexOf ( '#' ) !== - 1 ) { const [ controller , action ] = name . split ( '#' ) ; ErrorsHandler . push ( { target : target , controller , action , } ) ; } else { ErrorsHandler . push ( { target : target , controller : name , } ) ; } }
Extract error handler
@param target
@param name
Extract error handler