symfony API

sfException Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfException is the base class for all symfony related exceptions and

Method Summary

  • string escape($value)
    Escapes a string value with html entities
  • string fileExcerpt(, )
    Returns an excerpt of a code file around the given line number.
  • string formatArgs(, , )
    Formats an array as a string.
  • string formatArrayAsHtml()
    Returns an HTML version of an array as YAML.
  • string getName()
    Retrieves the name of this exception.
  • array getTraces(, )
    Returns an array of exception traces.
  • printStackTrace()
    Prints the stack trace for this exception.
  • setName()
    Sets the name of this exception.
  • __construct(, )
    Class constructor.

Method Details

  • (string) escape ($value) Browse code

    Escapes a string value with html entities

  • (string) fileExcerpt (, ) Browse code

    Returns an excerpt of a code file around the given line number.

    returns An HTML string

  • (string) formatArgs (, , ) Browse code

    Formats an array as a string.

  • (string) formatArrayAsHtml () Browse code

    Returns an HTML version of an array as YAML.

    returns An HTML string

  • (string) getName () Browse code

    Retrieves the name of this exception.

    returns This exception's name

  • (array) getTraces (, ) Browse code

    Returns an array of exception traces.

    returns An array of traces

  • printStackTrace () Browse code

    Prints the stack trace for this exception.

  • setName () Browse code

    Sets the name of this exception.

  • __construct (, ) Browse code

    Class constructor.