static NodeDeserializationException fromContext(
            Type into,
            String pointer,
            Node node,
            Throwable previous,
            String message
    ) {
        String formattedMessage = NodeMapper.createErrorMessage(into, pointer, node, message);
        return new NodeDeserializationException(formattedMessage, node.getSourceLocation(), previous);
    }
Creates a DeserializationException exception from context with a formatted message.

@param into The type being deserialized into.
@param pointer The JSON pointer to show the context where the error occurred.
@param node The Node that could not be deserialized.
@param previous The previous exception that was encountered (or null).
@param message The message to use in the exception (or null to include no extra message).
@return Returns the created exception.
smithy-model/src/main/java/software/amazon/smithy/model/node/NodeDeserializationException.java