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

org.ssssssss.magicapi.exception.InvalidArgumentException Maven / Gradle / Ivy

package org.ssssssss.magicapi.exception;

import org.ssssssss.magicapi.model.JsonCode;

public class InvalidArgumentException extends RuntimeException {

	private final JsonCode jsonCode;

	public InvalidArgumentException(JsonCode jsonCode) {
		super(jsonCode.getMessage());
		this.jsonCode = jsonCode;
	}

	public int getCode() {
		return jsonCode.getCode();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy