public function __triggerError($functionname, $error)
	{
		if($error == false) {
			trigger_error(sprintf("SimpleEmailService::%s(): Encountered an error, but no description given", $functionname), E_USER_WARNING);
		}
		else if(isset($error['curl']) && $error['curl'])
		{
			trigger_error(sprintf("SimpleEmailService::%s(): %s %s", $functionname, $error['code'], $error['message']), E_USER_WARNING);
		}
		else if(isset($error['Error']))
		{
			$e = $error['Error'];
			$message = sprintf("SimpleEmailService::%s(): %s - %s: %s\nRequest Id: %s\n", $functionname, $e['Type'], $e['Code'], $e['Message'], $error['RequestId']);
			trigger_error($message, E_USER_WARNING);
		}
		else {
			trigger_error(sprintf("SimpleEmailService::%s(): Encountered an error: %s", $functionname, $error), E_USER_WARNING);
		}
	}
public function __triggerError($functionname, $error)
	{
		if($error == false) {
			trigger_error(sprintf("SimpleEmailService::%s(): Encountered an error, but no description given", $functionname), E_USER_WARNING);
		}
		else if(isset($error['curl']) && $error['curl'])
		{
			trigger_error(sprintf("SimpleEmailService::%s(): %s %s", $functionname, $error['code'], $error['message']), E_USER_WARNING);
		}
		else if(isset($error['Error']))
		{
			$e = $error['Error'];
			$message = sprintf("SimpleEmailService::%s(): %s - %s: %s\nRequest Id: %s\n", $functionname, $e['Type'], $e['Code'], $e['Message'], $error['RequestId']);
			trigger_error($message, E_USER_WARNING);
		}
		else {
			trigger_error(sprintf("SimpleEmailService::%s(): Encountered an error: %s", $functionname, $error), E_USER_WARNING);
		}
	}
public function __triggerError ( $ functionname , $ error ) { if ( $ error == false ) { trigger_error ( sprintf ( "SimpleEmailService::%s(): Encountered an error, but no description given" , $ functionname ) , E_USER_WARNING ) ; } else if ( isset ( $ error [ 'curl' ] ) && $ error [ 'curl' ] ) { trigger_error ( sprintf ( "SimpleEmailService::%s(): %s %s" , $ functionname , $ error [ 'code' ] , $ error [ 'message' ] ) , E_USER_WARNING ) ; } else if ( isset ( $ error [ 'Error' ] ) ) { $ e = $ error [ 'Error' ] ; $ message = sprintf ( "SimpleEmailService::%s(): %s - %s: %s\nRequest Id: %s\n" , $ functionname , $ e [ 'Type' ] , $ e [ 'Code' ] , $ e [ 'Message' ] , $ error [ 'RequestId' ] ) ; trigger_error ( $ message , E_USER_WARNING ) ; } else { trigger_error ( sprintf ( "SimpleEmailService::%s(): Encountered an error: %s" , $ functionname , $ error ) , E_USER_WARNING ) ; } }
Trigger an error message

@internal Used by member functions to output errors
@param array $error Array containing error information
@return string
Trigger an error message