public class OpenAPIContractException extends RuntimeException
Constructor and Description |
---|
OpenAPIContractException(String message,
ContractErrorType type,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static OpenAPIContractException |
createInvalidContract(String reason) |
static OpenAPIContractException |
createInvalidContract(String reason,
Throwable cause) |
static OpenAPIContractException |
createInvalidStyle(Location in,
String allowedStyles) |
static OpenAPIContractException |
createUnsupportedFeature(String feature) |
static OpenAPIContractException |
createUnsupportedVersion(String version) |
ContractErrorType |
type() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OpenAPIContractException(String message, ContractErrorType type, Throwable cause)
public static OpenAPIContractException createInvalidContract(String reason)
public static OpenAPIContractException createInvalidContract(String reason, Throwable cause)
public static OpenAPIContractException createUnsupportedVersion(String version)
public static OpenAPIContractException createUnsupportedFeature(String feature)
public static OpenAPIContractException createInvalidStyle(Location in, String allowedStyles)
public ContractErrorType type()
Copyright © 2023 Eclipse. All rights reserved.