\TApplicationException

NOTE(mcslee): This currently contains a ton of duplicated code from TBase because we need to save CPU cycles and this is not yet in an extension.

Ideally we'd multiply-inherit TException from both Exception and Base, but that's not possible in PHP and there are no modules either, so for now we apologetically take a trip to HackTown.

Can be called with standard Exception constructor (message, code) or with Thrift Base object constructor (spec, vals).

Summary

Methods
Properties
Constants
__construct()
read()
write()
$tmethod
$_TSPEC
UNKNOWN
UNKNOWN_METHOD
INVALID_MESSAGE_TYPE
WRONG_METHOD_NAME
BAD_SEQUENCE_ID
MISSING_RESULT
_read()
_write()
No protected properties found
N/A
_readMap()
_readList()
_writeMap()
_writeList()
No private properties found
N/A

Constants

UNKNOWN

UNKNOWN

UNKNOWN_METHOD

UNKNOWN_METHOD

INVALID_MESSAGE_TYPE

INVALID_MESSAGE_TYPE

WRONG_METHOD_NAME

WRONG_METHOD_NAME

BAD_SEQUENCE_ID

BAD_SEQUENCE_ID

MISSING_RESULT

MISSING_RESULT

Properties

$tmethod

$tmethod : 

Type

$_TSPEC

$_TSPEC : 

Type

Methods

__construct()

__construct(  $message = null,   $code) 

Parameters

$message
$code

read()

read(  $output) 

Parameters

$output

write()

write(  $output) 

Parameters

$output

_read()

_read(  $class,   $spec,   $input) 

Parameters

$class
$spec
$input

_write()

_write(  $class,   $spec,   $output) 

Parameters

$class
$spec
$output

_readMap()

_readMap(  $var,   $spec,   $input) 

Parameters

$var
$spec
$input

_readList()

_readList(  $var,   $spec,   $input,   $set = false) 

Parameters

$var
$spec
$input
$set

_writeMap()

_writeMap(  $var,   $spec,   $output) 

Parameters

$var
$spec
$output

_writeList()

_writeList(  $var,   $spec,   $output,   $set = false) 

Parameters

$var
$spec
$output
$set