getMessage() public method

Get the message for this exception.
public getMessage ( ) : string
return string Returns the exception message.
Example #1
0
 /**
  * Initialize an instance of the {@link ValidationException} class.
  *
  * @param Validation $validation The {@link Validation} object for the exception.
  */
 public function __construct(Validation $validation)
 {
     $this->validation = $validation;
     parent::__construct($validation->getMessage(), (int) $validation->status());
 }