BadConverter extends Exception
Exception to be thrown when a unit converter has uncaught exceptions & errors.
Tags
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