/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*
*/
// ServiceLocationException.java : All SLP exceptions are derived from
// this base class.
// Author: Erik Guttman
//
/**
* The ServiceLocationException class is thrown when an error occurs
* during SLP operation. The exact nature of the error is indicated
* by the integer error codes.
*
* @author Erik Guttman
*/
// Error codes.
/**
* No error.
*/
/**
* The DA did not have a registration in the language locale of
* the request, although it did have one in another language locale.
*/
/**
* An error occured while parsing a URL, attribute list, or a
* service location template document. This error is also returned
* from DA's when an otherwise unclassifiable internal error occurs.
*/
/**
* Upon registration, this error is returned if the URL is invalid or
* if some other problem occurs with the registration. Upon deregistration
* it is also returned if the URL is not registered.
*/
/**
* An attempt was made to register in a scope not supported by the DA.
* This error is also returned if an attempt is made to perform a
* registration or deregistration on a machine where a DA is running,
* since DA machines don't support SA functionality.
*/
/**
* The DA or SA receives a request for an unsupported SLP SPI.
*/
/**
* A message for which an signature block was required is missing
* the block.
*/
/**
* A signature block failed to authenticate.
*/
/**
* The version was not supported. This is surfaced to the client as a
* no results.
*/
/**
* The DA encountered an internal error.
*/
/**
* The DA was busy. This is not surfaced to the client.
*/
/**
* An option was received by the DA that wasn't supported. This is
* surfaced to the client as no results.
*/
/**
* An attempt was made to update a nonexisting registration.
*/
/**
* The remote agent doesn't support the request. Not surfaced to
* the client.
*/
/**
* For SA, the DA valid lifetime intervals for
* different DAs do not overlap.
*/
// Internal error codes.
/**
* Operation isn't implemented.
*/
/**
* Initialization of the network failed.
*/
/**
* A TCP connection timed out.
*/
/**
* An error occured during networking.
*/
/**
* An error occured in the client-side code.
*/
/*
* Registration failed to match the service type template.
*/
/**
* Packet size overflow.
*/
/**
* Overflow due to previous responder list being too long.
*/
// The error code for this exception.
// The message arguments.
// allows additional information to be added to the message
super(msgTag);
}
// Return true if this is a vaild on-the-wire error code.
}
/**
* Return the error code.
*
* @return The integer error code.
*/
public short getErrorCode() {
return errorCode;
}
/**
* Return the localized message, in the default locale.
*
* @return The localized message.
*/
}
}
}
}