message = $message; $this->errorType = $errorType; } /** * Returns the error type of the exception that has been thrown. */ public function getErrorType() { return $this->errorType; } public function __toString() { return "Error type: " . $this->errorType . ". " . $this->message; } }