public function getExceptionName($exception)
    {
        if (
            $exception instanceof \Reaction\Exceptions\Exception
            || $exception instanceof \Reaction\Exceptions\InvalidCallException
            || $exception instanceof \Reaction\Exceptions\InvalidParamException
            || $exception instanceof \Reaction\Exceptions\UnknownMethodException
        ) {
            return $exception->getName();
        }

        return null;
    }