October\Rain\Exception\AjaxException

Overview

AjaxException is considered a "smart error" and will send http code 406, so they can pass response contents.

Extends
Implements
  • Throwable
  • Stringable

Public Properties

There are no public properties in the class.

Show inherited public properties

Inherited Public Properties

Protected Properties

protected array $contents

contents of the response.

Show inherited protected properties

Inherited Protected Properties


Public Methods

public __construct()

public __construct($contents = null): void

__construct the exception

public addContent()

public addContent($key, $val): void

addContent is used to add extra data to an AJAX exception

public getContents()

public getContents(): void

getContents returns invalid fields.

Show inherited public methods

Inherited Public Methods

Protected Methods

Show inherited protected methods

Inherited Protected Methods