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

com.versionone.apiclient.exceptions.OidException Maven / Gradle / Ivy

Go to download

A library for custom Java development against the VersionOne Development Platform's REST API.

There is a newer version: 16.1.3
Show newest version
package com.versionone.apiclient.exceptions;


/**
 * Exception thrown when the API encounters a problem related to Object Identifiers 
 */
public class OidException extends V1Exception {

	private static final long serialVersionUID = 1L;

	/**
	 * Create with message and token
	 * 
	 * @param message - description of error 
	 * @param token - token of object that caused problem
	 */
	public OidException(String message, String token) {
		this(message, token, null);
	}

	/**
	 * Create with message, token and another exception
	 * 
	 * @param message - description of error
	 * @param token - token of object that caused problem
	 * @param inner - exception that we caught
	 */
	public OidException(String message, String token, Exception inner) {
		this(message + ": " + token, inner);
	}

	/**
	 * Create with just a message
	 * 
	 * @param message - description of error
	 */
	public OidException(String message) {
		super(message, null);
	}

	/**
	 * Create with a message and another exception
	 * 
	 * @param message - description of error
	 * @param inner - exception that we caught
	 */
	public OidException(String message, Exception inner) {
		super(message, inner);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy