Google Cloud Appengine Admin V1 Client - Class ErrorHandler (1.3.4)

Reference documentation and code samples for the Google Cloud Appengine Admin V1 Client class ErrorHandler.

Custom static error page to be served when an error occurs.

Generated from protobuf message google.appengine.v1.ErrorHandler

Namespace

Google \ Cloud \ AppEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ error_code int

Error condition this handler applies to.

↳ static_file string

Static file content to be served for this error.

↳ mime_type string

MIME type of file. Defaults to text/html.

getErrorCode

Error condition this handler applies to.

Returns
Type Description
int

setErrorCode

Error condition this handler applies to.

Parameter
Name Description
var int
Returns
Type Description
$this

getStaticFile

Static file content to be served for this error.

Returns
Type Description
string

setStaticFile

Static file content to be served for this error.

Parameter
Name Description
var string
Returns
Type Description
$this

getMimeType

MIME type of file. Defaults to text/html.

Returns
Type Description
string

setMimeType

MIME type of file. Defaults to text/html.

Parameter
Name Description
var string
Returns
Type Description
$this