/** * @brief Logs a failure. * * ## Overview * Used for aborting this audit and reporting what caused the failure. Used in cases such as when * the `PerformanceAuditManager::MAX_AUDITS_PER_ACCOUNT` limit has been met. * * @uses PerformanceAuditManager::Log() * * @param {String} $errorCode Code to set status too, also passed to Log method as key for error message. * @param {Array} $errorData Extra data pertaining to failure. * * @return {Boolean} True always. * * @author <*****@*****.**> * @date 02/19/2014 */ public static function Fail($errorCode = -1, $errorData = null) { self::$status = $errorCode; return self::Log(self::DEBUG_LEVEL_ERROR, $errorCode, $errorData); }