symfony API

sfException Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

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)

    Escapes a string value with html entities

  • (string) fileExcerpt (, )

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

    returns An HTML string

  • (string) formatArgs (, , )

    Formats an array as a string.

  • (string) formatArrayAsHtml ()

    Returns an HTML version of an array as YAML.

    returns An HTML string

  • (string) getName ()

    Retrieves the name of this exception.

    returns This exception's name

  • (array) getTraces (, )

    Returns an array of exception traces.

    returns An array of traces

  • printStackTrace ()

    Prints the stack trace for this exception.

  • setName ()

    Sets the name of this exception.

  • __construct (, )

    Class constructor.