Documentation

BadMeasurement extends Exception

Exception to be thrown when a unit converter is missing a calculator.

Tags
version
1.0.0
since
0.8.0
author

Jordan Brauer 18744334+jordanbrauer@users.noreply.github.com

Table of Contents

ERROR_UNKNOWN_MEASUREMENT  = 1
unknown()  : self
Throw a new exception for an unknown type of measurement.

Constants

ERROR_UNKNOWN_MEASUREMENT

public mixed ERROR_UNKNOWN_MEASUREMENT = 1

Methods

unknown()

Throw a new exception for an unknown type of measurement.

public static unknown(string $measurement[, Exception $previous = null ]) : self
Parameters
$measurement : string

The type of measurement that caused the error.

$previous : Exception = null
Return values
self

Search results