JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Interfaces

  • ExceptionInterface

Exceptions

  • DumpException
  • ParseException
  • RuntimeException

Class ParseException

Exception class thrown when an error occurs during parsing.

Exception implements Throwable
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>
Located at vendor/symfony/yaml/Exception/ParseException.php

Methods summary

public
# __construct( string $message, integer $parsedLine = -1, string|null $snippet = null, string|null $parsedFile = null, Exception $previous = null )

Constructor.

Constructor.

Parameters

$message
string - $message The error message
$parsedLine
integer - $parsedLine The line where the error occurred
$snippet
string|null - $snippet The snippet of code near the problem
$parsedFile
string|null - $parsedFile The file name where the error occurred
$previous
Exception|null - $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(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()

Magic methods summary

Properties summary

Properties inherited from Exception

$code, $file, $line, $message

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.