Documentation

BadConverter extends Exception

Exception to be thrown when a unit converter has uncaught exceptions & errors.

Tags
version
1.0.0
since
0.8.0
author

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

Table of Contents

ERROR_MISSING_CALCULATOR  = 1
ERROR_MISSING_REGISTRY  = 2
missingCalculator()  : self
Throw a new exception for a missing calculator
missingRegistry()  : self
Throw a new exception for a missing registry

Constants

ERROR_MISSING_CALCULATOR

public mixed ERROR_MISSING_CALCULATOR = 1

ERROR_MISSING_REGISTRY

public mixed ERROR_MISSING_REGISTRY = 2

Methods

missingCalculator()

Throw a new exception for a missing calculator

public static missingCalculator([Exception $previous = null ]) : self
Parameters
$previous : Exception = null
Return values
self

missingRegistry()

Throw a new exception for a missing registry

public static missingRegistry([Exception $previous = null ]) : self
Parameters
$previous : Exception = null
Return values
self

Search results