/**
  * constructor
  *
  * @param mixed   $code     Net_UserAgent_Mobile error code, or string with error
  *     message.
  * @param integer $mode     what 'error mode' to operate in
  * @param integer $level    what error level to use for $mode and
  *     PEAR_ERROR_TRIGGER
  * @param mixed   $userinfo additional user/debug info
  */
 function Net_UserAgent_Mobile_Error($code = NET_USERAGENT_MOBILE_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $userinfo = null)
 {
     if (is_int($code)) {
         $this->PEAR_Error('Net_UserAgent_Mobile Error: ' . Net_UserAgent_Mobile::errorMessage($code), $code, $mode, $level, $userinfo);
     } else {
         $this->PEAR_Error("Net_UserAgent_Mobile Error: {$code}", NET_USERAGENT_MOBILE_ERROR, $mode, $level, $userinfo);
     }
 }