1 /* -*- Mode: Java; tab-width: 4 -*-
3 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 Change History (most recent first):
19 $Log: DNSSDException.java,v $
20 Revision 1.6 2007/02/08 23:58:17 cheshire
21 Added comment about updating kMessages array in AppleDNSSDException (DNSSD.java)
23 Revision 1.5 2007/02/07 01:19:36 cheshire
24 <rdar://problem/4849427> API: Reconcile conflicting error code values
26 Revision 1.4 2006/08/14 23:25:08 cheshire
27 Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
29 Revision 1.3 2005/07/10 22:19:01 cheshire
30 Add missing error codes to list of public static final ints
32 Revision 1.2 2004/04/30 21:48:27 rpantos
33 Change line endings for CVS.
35 Revision 1.1 2004/04/30 16:29:35 rpantos
40 package com
.apple
.dnssd
;
44 Used to report various DNS-SD-related error conditions.
47 abstract public class DNSSDException
extends Exception
49 public static final int NO_ERROR
= 0;
50 public static final int UNKNOWN
= -65537;
51 public static final int NO_SUCH_NAME
= -65538;
52 public static final int NO_MEMORY
= -65539;
53 public static final int BAD_PARAM
= -65540;
54 public static final int BAD_REFERENCE
= -65541;
55 public static final int BAD_STATE
= -65542;
56 public static final int BAD_FLAGS
= -65543;
57 public static final int UNSUPPORTED
= -65544;
58 public static final int NOT_INITIALIZED
= -65545;
59 public static final int NO_CACHE
= -65546;
60 public static final int ALREADY_REGISTERED
= -65547;
61 public static final int NAME_CONFLICT
= -65548;
62 public static final int INVALID
= -65549;
63 public static final int FIREWALL
= -65550;
64 public static final int INCOMPATIBLE
= -65551;
65 public static final int BAD_INTERFACE_INDEX
= -65552;
66 public static final int REFUSED
= -65553;
67 public static final int NOSUCHRECORD
= -65554;
68 public static final int NOAUTH
= -65555;
69 public static final int NOSUCHKEY
= -65556;
70 public static final int NATTRAVERSAL
= -65557;
71 public static final int DOUBLENAT
= -65558;
72 public static final int BADTIME
= -65559;
73 public static final int BADSIG
= -65560;
74 public static final int BADKEY
= -65561;
75 public static final int TRANSIENT
= -65562;
76 public static final int SERVICENOTRUNNING
= -65563;
77 public static final int NATPORTMAPPINGUNSUPPORTED
= -65564;
78 public static final int NATPORTMAPPINGDISABLED
= -65565;
80 // Note: When adding new error values here, remember also
81 // to update the corresponding kMessages array in AppleDNSSDException (DNSSD.java)
83 /** Returns the sub-code that identifies the particular error. */
84 abstract public int getErrorCode();