All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fge.jsonschema.report.SimpleExceptionProvider Maven / Gradle / Ivy

There is a newer version: 2.2.6
Show newest version
package com.github.fge.jsonschema.report;

import com.github.fge.jsonschema.exceptions.ExceptionProvider;
import com.github.fge.jsonschema.exceptions.ProcessingException;

public final class SimpleExceptionProvider
    implements ExceptionProvider
{
    private static final ExceptionProvider INSTANCE
        = new SimpleExceptionProvider();

    public static ExceptionProvider getInstance()
    {
        return INSTANCE;
    }

    private SimpleExceptionProvider()
    {
    }

    @Override
    public ProcessingException doException(final ProcessingMessage message)
    {
        return new ProcessingException(message);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy