__construct() public method

public __construct ( $reason = null, $fieldPath = null, $trigger = null, $errorString = null, $ApiErrorType = null )
コード例 #1
0
ファイル: NotFound.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("The resource could not be found");
 }
コード例 #2
0
ファイル: NotAcceptable.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("Invalid accepte content type sent for this endpoint/method");
 }
コード例 #3
0
ファイル: InvalidMethod.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("Invalid combination for method/endpoint");
 }
コード例 #4
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("Your authentication credentials were rejected");
 }
コード例 #5
0
ファイル: PaymentRequired.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("Please contact sales or support");
 }
コード例 #6
0
ファイル: ClientError.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  *
  * @param PortaText\Command\Descriptor $descriptor The Command descriptor.
  * @param PortaText\Command\Result $result Request result.
  */
 public function __construct($descriptor = null, $result = null)
 {
     parent::__construct("There was an error with how the request was sent", $descriptor, $result);
 }
コード例 #7
0
ファイル: ServerError.php プロジェクト: PortaText/php-sdk
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct("Internal server error, please contact support");
 }