Class UrlBuilder.DisallowedSchemeException

All Implemented Interfaces:
Serializable
Enclosing class:
UrlBuilder

public static final class UrlBuilder.DisallowedSchemeException extends IllegalArgumentException
Thrown by UrlBuilder.scheme(String) when the input scheme is not in the {http, https} allowlist. Subclass of IllegalArgumentException for binary compatibility with callers that catch the parent. UrlBuilder.scheme(String) 在 scheme 不在 {http, https} 允许列表时抛出。 继承 IllegalArgumentException 以保持对捕获父类的调用方的二进制兼容。
Since:
opencode-base-web V1.0.4
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • DisallowedSchemeException

      public DisallowedSchemeException(String message)
    • DisallowedSchemeException

      public DisallowedSchemeException(String message, Throwable cause)
      V1.0.4 sec round-6 P1: companion (String, Throwable) constructor so callers wrapping with cause-preservation idioms don't lose the cause chain. V1.0.4 sec round-6 P1:补 (String, Throwable) 构造器,让保留 cause 的包装习惯 不丢链。