src/wcmf/lib/presentation/ApplicationError.php
public static function getGeneral($message, $statusCode=self::DEFAULT_ERROR_STATUS) {
    $error = new ApplicationError('GENERAL_ERROR', ApplicationError::LEVEL_ERROR, $statusCode, $message);
    return $error;
  }
public static function getGeneral($message, $statusCode=self::DEFAULT_ERROR_STATUS) {
    $error = new ApplicationError('GENERAL_ERROR', ApplicationError::LEVEL_ERROR, $statusCode, $message);
    return $error;
  }
public static function getGeneral ( $ message , $ statusCode = self :: DEFAULT_ERROR_STATUS ) { $ error = new ApplicationError ( 'GENERAL_ERROR' , ApplicationError :: LEVEL_ERROR , $ statusCode , $ message ) ; return $ error ; }
Factory method for creating a general error instance.
@param $message Error message
@param $statusCode HTTP status code (optional, default: _DEFAULT_ERROR_STATUS_)
@return ApplicationError
Factory method for creating a general error instance .