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

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
NameDescription
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
TypeDescription
int

setErrorCode

Error condition this handler applies to.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStaticFile

Static file content to be served for this error.

Returns
TypeDescription
string

setStaticFile

Static file content to be served for this error.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMimeType

MIME type of file. Defaults to text/html.

Returns
TypeDescription
string

setMimeType

MIME type of file. Defaults to text/html.

Parameter
NameDescription
var string
Returns
TypeDescription
$this