DoDomuDojade Documentation

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

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
self

clientError()

public static clientError(Throwable $previous) : self
Parameters
$previous : Throwable
Return values
self

decodingError()

public static decodingError(Throwable $previous) : self
Parameters
$previous : Throwable
Return values
self

invalidCoordinates()

public static invalidCoordinates(float $lat, float $lon) : self
Parameters
$lat : float
$lon : float
Return values
self

invalidLineNumber()

public static invalidLineNumber(int $lineNumber) : self
Parameters
$lineNumber : int
Return values
self

invalidStopId()

public static invalidStopId(string $stopId) : self
Parameters
$stopId : string
Return values
self

noDepartureData()

public static noDepartureData(string $stopId) : self
Parameters
$stopId : string
Return values
self

noStopsData()

public static noStopsData(float $lat, float $lon) : self
Parameters
$lat : float
$lon : float
Return values
self

redirectionError()

public static redirectionError(Throwable $previous) : self
Parameters
$previous : Throwable
Return values
self

serverError()

public static serverError(Throwable $previous) : self
Parameters
$previous : Throwable
Return values
self

transportError()

public static transportError(Throwable $previous) : self
Parameters
$previous : Throwable
Return values
self

        
On this page

Search results