error_type = $error_type; $this->details = $details; $message = constant('Shapefile\Shapefile::' . $error_type . '_MESSAGE'); parent::__construct($message, 0, null); } /** * Gets internal error type. * * @return string */ public function getErrorType() { return $this->error_type; } /** * Gets error details. * * @return string */ public function getDetails() { return $this->details; } }