TramApiException
extends InfrastructureException
in package
FinalYes
Table of Contents
Properties
- $errorCode : string
- $httpStatusCode : int
Methods
- __construct() : mixed
- apiCallFailed() : self
- clientError() : self
- decodingError() : self
- invalidCoordinates() : self
- invalidLineNumber() : self
- invalidStopId() : self
- noDepartureData() : self
- noStopsData() : self
- redirectionError() : self
- serverError() : self
- transportError() : self
Properties
$errorCode read-only
public
string
$errorCode
= "INFRASTRUCTURE_ERROR"
$httpStatusCode read-only
public
int
$httpStatusCode
= 500
Methods
__construct()
public
__construct(string $message[, string $errorCode = "INFRASTRUCTURE_ERROR" ][, int $httpStatusCode = 500 ][, Throwable|null $previous = null ]) : mixed
Parameters
- $message : string
- $errorCode : string = "INFRASTRUCTURE_ERROR"
- $httpStatusCode : int = 500
- $previous : Throwable|null = null
apiCallFailed()
public
static apiCallFailed(string $method, Throwable $previous) : self
Parameters
- $method : string
- $previous : Throwable
Return values
selfclientError()
public
static clientError(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfdecodingError()
public
static decodingError(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfinvalidCoordinates()
public
static invalidCoordinates(float $lat, float $lon) : self
Parameters
- $lat : float
- $lon : float
Return values
selfinvalidLineNumber()
public
static invalidLineNumber(int $lineNumber) : self
Parameters
- $lineNumber : int
Return values
selfinvalidStopId()
public
static invalidStopId(string $stopId) : self
Parameters
- $stopId : string
Return values
selfnoDepartureData()
public
static noDepartureData(string $stopId) : self
Parameters
- $stopId : string
Return values
selfnoStopsData()
public
static noStopsData(float $lat, float $lon) : self
Parameters
- $lat : float
- $lon : float
Return values
selfredirectionError()
public
static redirectionError(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selfserverError()
public
static serverError(Throwable $previous) : self
Parameters
- $previous : Throwable
Return values
selftransportError()
public
static transportError(Throwable $previous) : self
Parameters
- $previous : Throwable