1 /* |
1 /* |
2 * Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
43 */ |
43 */ |
44 // Required for serialization interoperability with JSR 28 |
44 // Required for serialization interoperability with JSR 28 |
45 private Throwable _exception; |
45 private Throwable _exception; |
46 |
46 |
47 /** |
47 /** |
48 * Constructs a new instance of <tt>SaslException</tt>. |
48 * Constructs a new instance of {@code SaslException}. |
49 * The root exception and the detailed message are null. |
49 * The root exception and the detailed message are null. |
50 */ |
50 */ |
51 public SaslException () { |
51 public SaslException () { |
52 super(); |
52 super(); |
53 } |
53 } |
54 |
54 |
55 /** |
55 /** |
56 * Constructs a new instance of <tt>SaslException</tt> with a detailed message. |
56 * Constructs a new instance of {@code SaslException} with a detailed message. |
57 * The root exception is null. |
57 * The root exception is null. |
58 * @param detail A possibly null string containing details of the exception. |
58 * @param detail A possibly null string containing details of the exception. |
59 * |
59 * |
60 * @see java.lang.Throwable#getMessage |
60 * @see java.lang.Throwable#getMessage |
61 */ |
61 */ |
62 public SaslException (String detail) { |
62 public SaslException (String detail) { |
63 super(detail); |
63 super(detail); |
64 } |
64 } |
65 |
65 |
66 /** |
66 /** |
67 * Constructs a new instance of <tt>SaslException</tt> with a detailed message |
67 * Constructs a new instance of {@code SaslException} with a detailed message |
68 * and a root exception. |
68 * and a root exception. |
69 * For example, a SaslException might result from a problem with |
69 * For example, a SaslException might result from a problem with |
70 * the callback handler, which might throw a NoSuchCallbackException if |
70 * the callback handler, which might throw a NoSuchCallbackException if |
71 * it does not support the requested callback, or throw an IOException |
71 * it does not support the requested callback, or throw an IOException |
72 * if it had problems obtaining data for the callback. The |
72 * if it had problems obtaining data for the callback. The |