public static function makeError($errorCode, $message, $data = array())
	{
		$error = array();
		$error['flag'] = false;
		$error['message'] = $message;
		$error['code'] = $errorCode;
		if(!empty($data))
			$error['data'] = $data;

		return $error;
	}
public static function makeError($errorCode, $message, $data = array())
	{
		$error = array();
		$error['flag'] = false;
		$error['message'] = $message;
		$error['code'] = $errorCode;
		if(!empty($data))
			$error['data'] = $data;

		return $error;
	}
public static function makeError ( $ errorCode , $ message , $ data = array ( ) ) { $ error = array ( ) ; $ error [ 'flag' ] = false ; $ error [ 'message' ] = $ message ; $ error [ 'code' ] = $ errorCode ; if ( ! empty ( $ data ) ) $ error [ 'data' ] = $ data ; return $ error ; }
Generates error response object

@param int    $errorCode
@param string $message
@param mixed  $data

@return array
Generates error response object