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 016/** 017 * A runtime exception that is thrown if the ACME server does not support a certain 018 * feature. It might be either because that feature is optional, or because the server 019 * is not fully RFC compliant. 020 */ 021public class AcmeNotSupportedException extends AcmeProtocolException { 022 private static final long serialVersionUID = 3434074002226584731L; 023 024 /** 025 * Creates a new {@link AcmeNotSupportedException}. 026 * 027 * @param feature 028 * Feature that is not supported 029 */ 030 public AcmeNotSupportedException(String feature) { 031 super("Server does not support " + feature); 032 } 033 034}