Overview

Namespaces

  • Webmozart
    • Json

Classes

  • JsonDecoder
  • JsonEncoder
  • JsonError
  • JsonValidator

Exceptions

  • DecodingFailedException
  • EncodingFailedException
  • FileNotFoundException
  • InvalidSchemaException
  • ValidationFailedException
  • Overview
  • Namespace
  • Class

Class ValidationFailedException

Thrown when a JSON file contains invalid JSON.

Exception
Extended by Webmozart\Json\ValidationFailedException
Namespace: Webmozart\Json
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at ValidationFailedException.php
Methods summary
public static
# fromErrors( array $errors = array(), $code = 0, Exception $previous = null )
public
# __construct( $message = '', array $errors = array(), $code = 0, Exception $previous = null )

Overrides

Exception::__construct()
public array
# getErrors( )

Returns

array
public array
# getErrorsAsString( )

Returns

array
Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
Webmozart JSON API API documentation generated by ApiGen