Class 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).
- Exception
- TException
- TApplicationException
Param:
$p1 Message (string) or type-spec (array)
Param:
$p2 Code (integer) or values (array)
Located at thrift/Thrift.php
mixed
$p1 Message (string) or type-spec (array)
Param:
mixed
$p2 Code (integer) or values (array)
Located at thrift/Thrift.php
public
|
|
public
|
|
public
|
__toString(),
getCode(),
getFile(),
getLine(),
getMessage(),
getPrevious(),
getTrace(),
getTraceAsString()
|
integer |
UNKNOWN
|
0 |
|
integer |
UNKNOWN_METHOD
|
1 |
|
integer |
INVALID_MESSAGE_TYPE
|
2 |
|
integer |
WRONG_METHOD_NAME
|
3 |
|
integer |
BAD_SEQUENCE_ID
|
4 |
|
integer |
MISSING_RESULT
|
5 |
|
integer |
INTERNAL_ERROR
|
6 |
|
integer |
PROTOCOL_ERROR
|
7 |
public static
array
|
$_TSPEC | array(1 => array('var' => 'message',
'type' => TType::STRING),
2 => array('var' => 'code',
'type' => TType::I32)) |
$tmethod
|