001/* 002 * acme4j - Java ACME client 003 * 004 * Copyright (C) 2023 Richard "Shred" Körber 005 * http://acme4j.shredzone.org 006 * 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * 010 * This program is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 013 */ 014package org.shredzone.acme4j.exception; 015 016import java.io.Serial; 017 018/** 019 * A runtime exception that is thrown if the ACME server does not support a certain 020 * feature. It might be either because that feature is optional, or because the server 021 * is not fully RFC compliant. 022 */ 023public class AcmeNotSupportedException extends AcmeProtocolException { 024 @Serial 025 private static final long serialVersionUID = 3434074002226584731L; 026 027 /** 028 * Creates a new {@link AcmeNotSupportedException}. 029 * 030 * @param feature 031 * Feature that is not supported 032 */ 033 public AcmeNotSupportedException(String feature) { 034 super("Server does not support " + feature); 035 } 036 037}