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

cz.mmsparams.api.exceptions.ValidationException Maven / Gradle / Ivy

package cz.mmsparams.api.exceptions;

import java.io.Serializable;

import cz.mmsparams.api.validation.ValidationResult;
import cz.mmsparams.api.websocket.model.error.TestErrorType;

public class ValidationException extends MmsParamsExceptionBase implements Serializable
{
    public ValidationException()
    {
        setTestErrorType(TestErrorType.VALIDATIONS);
    }

    public ValidationException(ValidationResult validationResult)
    {
        super(validationResult == null ? "validationResult is null!" : validationResult.toString());
        setTestErrorType(TestErrorType.VALIDATIONS);
    }

    public ValidationException(String message)
    {
        super(message);
        setTestErrorType(TestErrorType.VALIDATIONS);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy