src/Incoming/Hydrator/Exception/UnresolvableHydratorException.php
public static function forModel(
        $model,
        int $code = self::CODE_FOR_MODEL,
        Throwable $previous = null
    ): self {
        $message = self::DEFAULT_MESSAGE . self::MESSAGE_EXTENSION_FOR_MODEL;

        $message .= sprintf(
            self::MESSAGE_EXTENSION_TYPE_FORMAT,
            is_object($model) ? get_class($model) : gettype($model)
        );

        return new static($message, $code, $previous);
    }
public static function forModel(
        $model,
        int $code = self::CODE_FOR_MODEL,
        Throwable $previous = null
    ): self {
        $message = self::DEFAULT_MESSAGE . self::MESSAGE_EXTENSION_FOR_MODEL;

        $message .= sprintf(
            self::MESSAGE_EXTENSION_TYPE_FORMAT,
            is_object($model) ? get_class($model) : gettype($model)
        );

        return new static($message, $code, $previous);
    }
public static function forModel ( $ model , int $ code = self :: CODE_FOR_MODEL , Throwable $ previous = null ) : self { $ message = self :: DEFAULT_MESSAGE . self :: MESSAGE_EXTENSION_FOR_MODEL ; $ message .= sprintf ( self :: MESSAGE_EXTENSION_TYPE_FORMAT , is_object ( $ model ) ? get_class ( $ model ) : gettype ( $ model ) ) ; return new static ( $ message , $ code , $ previous ) ; }
Create an exception instance for a problem resolving a hydrator for a
given model.

@param mixed $model The model to hydrate.
@param int $code The exception code.
@param Throwable|null $previous A previous exception used for chaining.
@return static The newly created exception.
Create an exception instance for a problem resolving a hydrator for a given model .