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

com.silanis.esl.sdk.internal.ConversionException Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.sdk.internal;

public class ConversionException extends RuntimeException {
    private Class sourceType;
    private Class destType;

    public ConversionException( Class sourceType, Class destType, String message ) {
        super( "Failed to convert from " + sourceType.getName() + " to " + destType.getName() + ". " + message );
        this.sourceType = sourceType;
        this.destType = destType;
    }

    public Class getSourceType() {
        return sourceType;
    }

    public Class getDestType() {
        return destType;
    }
}