Overview

Namespaces

  • Composer
    • Autoload
  • Guzzle
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
        • Header
      • QueryAggregator
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Mock
    • Stream
  • Mockery
    • Adapter
      • Phpunit
    • CountValidator
    • Exception
    • Generator
      • StringManipulation
        • Pass
    • Loader
    • Matcher
  • None
  • Omnipay
    • Common
      • Exception
      • Message
    • Dummy
      • Message
    • Fatzebra
      • Message
  • PHP
  • Symfony
    • Component
      • EventDispatcher
        • Debug
        • DependencyInjection
        • Tests
          • Debug
          • DependencyInjection
      • HttpFoundation
        • File
          • Exception
          • MimeType
        • Session
          • Attribute
          • Flash
          • Storage
            • Handler
            • Proxy
        • Tests
          • File
            • MimeType
          • Session
            • Attribute
            • Flash
            • Storage
              • Handler
              • Proxy
      • Yaml
        • Exception
        • Tests

Interfaces

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

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 Exception/ParseException.php
Methods summary
public
# __construct( string $message, integer $parsedLine = -1, integer $snippet = null, string $parsedFile = null, Exception $previous = null )

Constructor.

Constructor.

Parameters

$message
The error message
$parsedLine
The line where the error occurred
$snippet
The snippet of code near the problem
$parsedFile
The file name where the error occurred
$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
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
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
The file line
Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
Omnipay Fat Zebra / Paystream Gateway Module API Documentation API documentation generated by ApiGen