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

com.xliic.cicd.audit.AuditException Maven / Gradle / Ivy

Go to download

Bundles multiple OpenAPI files (in JSON or YAML formats) using external references into one JSON file.

There is a newer version: 6.0
Show newest version
/*
 Copyright (c) 42Crunch Ltd. All rights reserved.
 Licensed under the GNU Affero General Public License version 3. See LICENSE.txt in the project root for license information.
*/

package com.xliic.cicd.audit;

public class AuditException extends Exception {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6795526460296139587L;
	private Throwable error;

	public AuditException(String message) {
		super(message);
	}

	public AuditException(String message, Throwable error) {
		super(message);
		this.error = error;
	}

	@Override
	public String getMessage() {
		String message = super.getMessage();
		if (this.error != null) {
			return message + ": " + this.error.getMessage();
		}
		return message;
	}

	public Throwable getError() {
		return error;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy