123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace think\exception;
- class ValidateException extends \RuntimeException
- {
- protected $error;
- public function __construct($error)
- {
- $this->error = $error;
- $this->message = is_array($error) ? implode("\n\r", $error) : $error;
- }
-
- public function getError()
- {
- return $this->error;
- }
- }
|