1 /* 2 * hunt-amqp: AMQP library for D programming language, based on hunt-net. 3 * 4 * Copyright (C) 2018-2019 HuntLabs 5 * 6 * Website: https://www.huntlabs.net 7 * 8 * Licensed under the Apache-2.0 License. 9 * 10 */ 11 module hunt.amqp.sasl.SaslSystemException; 12 13 //import javax.security.sasl.SaslException; 14 // 15 ///** 16 // * Indicates that a SASL handshake has failed with a {@code sys}, {@code sys-perm}, or {@code sys-temp} 17 // * outcome code as defined by 18 // * <a href="http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-security-v1.0-os.html#type-sasl-code"> 19 // * AMQP Version 1.0, Section 5.3.3.6</a>. 20 // */ 21 //class SaslSystemException extends SaslException { 22 // 23 // private static final long serialVersionUID = 1L; 24 // private final boolean permanent; 25 // 26 // /** 27 // * Creates an exception indicating a system error. 28 // * 29 // * @param permanent {@code true} if the error is permanent and requires 30 // * (manual) intervention. 31 // * 32 // */ 33 // public SaslSystemException(boolean permanent) { 34 // this(permanent, null); 35 // } 36 // 37 // /** 38 // * Creates an exception indicating a system error with a detail message. 39 // * 40 // * @param permanent {@code true} if the error is permanent and requires 41 // * (manual) intervention. 42 // * @param detail A message providing details about the cause 43 // * of the problem. 44 // */ 45 // public SaslSystemException(boolean permanent, String detail) { 46 // super(detail); 47 // this.permanent = permanent; 48 // } 49 // 50 // /** 51 // * Checks if the condition that caused this exception is of a permanent nature. 52 // * 53 // * @return {@code true} if the error condition is permanent. 54 // */ 55 // public final boolean isPermanent() { 56 // return permanent; 57 // } 58 //}