Name

UnexpectedObjectException

Synopsis

public class UnexpectedObjectException extends JAXRException {
// Public Constructors
    public UnexpectedObjectException(  ); 
    public UnexpectedObjectException( Throwable cause); 
    public UnexpectedObjectException( String reason); 
    public UnexpectedObjectException(String reason,   Throwable cause); 
}

UnexpectedObjectException is an exception that is thrown by a JAXR provider when asked to perform an operation using a collection of objects that are not of the type that the operation requires. For example, the saveOrganizations( ) method of BusinessLifeCycleManager requires a Collection of objects of type Organization. If an object in the Collection is not of this type, an UnexpectedObjectException is thrown.

Get Java Web Services in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.