src/mako/error/ErrorHandler.php
public function replaceHandlers(string $exceptionType, Closure $handler): void
	{
		$this->clearHandlers($exceptionType);

		$this->handle($exceptionType, $handler);
	}
public function replaceHandlers(string $exceptionType, Closure $handler): void
	{
		$this->clearHandlers($exceptionType);

		$this->handle($exceptionType, $handler);
	}
public function replaceHandlers ( string $ exceptionType , Closure $ handler ) : void { $ this -> clearHandlers ( $ exceptionType ) ; $ this -> handle ( $ exceptionType , $ handler ) ; }
Replaces all error handlers for an exception type with a new one.

@param string   $exceptionType Exception type
@param \Closure $handler       Exception handler
Replaces all error handlers for an exception type with a new one .