/** * Returns a {@link ClosedSessionException} which may be a singleton or a new instance, depending on * whether {@linkplain Flags#verboseExceptions() the verbose exception mode} is enabled. */ public static ClosedSessionException get() { return Flags.verboseExceptions() ? new ClosedSessionException() : INSTANCE; }