]> git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSShared/Java/DNSSDException.java
mDNSResponder-66.3.tar.gz
[apple/mdnsresponder.git] / mDNSShared / Java / DNSSDException.java
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24
25 Change History (most recent first):
26
27 $Log: DNSSDException.java,v $
28 Revision 1.2 2004/04/30 21:48:27 rpantos
29 Change line endings for CVS.
30
31 Revision 1.1 2004/04/30 16:29:35 rpantos
32 First checked in.
33
34 */
35
36 package com.apple.dnssd;
37
38
39 /**
40 Used to report various DNS-SD-related error conditions.
41 */
42
43 abstract public class DNSSDException extends Exception
44 {
45 public static final int NO_ERROR = 0;
46 public static final int UNKNOWN = -65537;
47 public static final int NO_SUCH_NAME = -65538;
48 public static final int NO_MEMORY = -65539;
49 public static final int BAD_PARAM = -65540;
50 public static final int BAD_REFERENCE = -65541;
51 public static final int BAD_STATE = -65542;
52 public static final int BAD_FLAGS = -65543;
53 public static final int UNSUPPORTED = -65544;
54 public static final int NOT_INITIALIZED = -65545;
55 public static final int ALREADY_REGISTERED = -65547;
56 public static final int NAME_CONFLICT = -65548;
57 public static final int INVALID = -65549;
58 public static final int INCOMPATIBLE = -65551;
59 public static final int BAD_INTERFACE_INDEX = -65552;
60
61 /** Returns the sub-code that identifies the particular error. */
62 abstract public int getErrorCode();
63 }
64