/** * Constructor for the Exception class. This is how you build a new * error instance. * * @param string $code The code string to return to the flash client :: THIS SHOULD PROBABLY BE SET AUTOMATICALLY :: * @param string $description A short reason why the error occured * @param string $file The file name that the error occured * @param int $line The line number where the error was detected */ function MessageException($code, $description, $file, $line, $detailCode = 'AMFPHP_RUNTIME_ERROR') { $this->code = $detailCode; $this->description = $description; // pass the description $this->details = $file; // pass the details $this->level = MessageException::getFriendlyError($code); $this->line = $line; // pass the line number }