ICanBoogie
  • Documentation
  • API Reference
  • Validate v0.1.0
Namespaces
  • ICanBoogie
    • Validate
      • Reader
      • Validation
      • Validator
      • ValidatorProvider
Classes
  • Context
  • Message
  • Render
  • Validation
  • ValidationErrors
Interfaces
  • Reader
  • Validator
  • ValidatorOptions
  • ValidatorProvider
Exceptions
  • ParameterIsMissing
  • ValidationFailed

Class ValidationFailed

Exception throw when asserting a validation failed.

Exception implements Throwable
┗ LogicException
┗ ICanBoogie\Validate\ValidationFailed
Namespace: ICanBoogie\Validate
Located at ValidationFailed.php

Methods summary

public __construct( ICanBoogie\Validate\ValidationErrors $errors, Exception $previous = null )

Parameters

$errors
$previous

Overrides

Exception::__construct
protected format_message( ICanBoogie\Validate\ValidationErrors $errors ) : string

Formats the exception message.

Formats the exception message.

Parameters

$errors

Returns

string

Methods inherited from Exception

__toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Constants summary

DEFAULT_MESSAGE : string
"Validation failed."

Properties summary

public $errors : ICanBoogie\Validate\ValidationErrors

		

Properties inherited from Exception

$code, $file, $line, $message

Magic properties

public read-only $errors : ICanBoogie\Validate\ValidationErrors
Validate v0.1.0 – Check on GitHub – API documentation generated by ApiGen