Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Interfaces

  • ExceptionInterface

Exceptions

  • DumpException
  • ParseException
  • RuntimeException
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class ParseException

Exception class thrown when an error occurs during parsing.

Exception
Extended by RuntimeException
Extended by Symfony\Component\Yaml\Exception\RuntimeException implements Symfony\Component\Yaml\Exception\ExceptionInterface
Extended by Symfony\Component\Yaml\Exception\ParseException
Namespace: Symfony\Component\Yaml\Exception
Author: Fabien Potencier <fabien@symfony.com>
Api
Located at yaml/Symfony/Component/Yaml/Exception/ParseException.php
Methods summary
public
# __construct( string $message, integer $parsedLine = -1, integer $snippet = null, string $parsedFile = null, Symfony\Component\Yaml\Exception\Exception $previous = null )

Constructor.

Constructor.

Parameters

$message
string
$message The error message
$parsedLine
integer
$parsedLine The line where the error occurred
$snippet
integer
$snippet The snippet of code near the problem
$parsedFile
string
$parsedFile The file name where the error occurred
$previous
Exception
$previous The previous exception

Overrides

Exception::__construct()
public string
# getSnippet( )

Gets the snippet of code near the error.

Gets the snippet of code near the error.

Returns

string
The snippet of code
public
# setSnippet( string $snippet )

Sets the snippet of code near the error.

Sets the snippet of code near the error.

Parameters

$snippet
string
$snippet The code snippet
public string
# getParsedFile( )

Gets the filename where the error occurred.

Gets the filename where the error occurred.

This method returns null if a string is parsed.

Returns

string
The filename
public
# setParsedFile( string $parsedFile )

Sets the filename where the error occurred.

Sets the filename where the error occurred.

Parameters

$parsedFile
string
$parsedFile The filename
public integer
# getParsedLine( )

Gets the line where the error occurred.

Gets the line where the error occurred.

Returns

integer
The file line
public
# setParsedLine( integer $parsedLine )

Sets the line where the error occurred.

Sets the line where the error occurred.

Parameters

$parsedLine
integer
$parsedLine The file line
Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
php-coveralls API documentation generated by ApiGen 2.8.0