All About Class UnknownServiceException in Java

UnknownServiceException is thrown from the application to indicate that an unknown service exception has occurred.when we try to get/call a service and the service we requested of a perticular network connection does not exist. This is could be due to MIME type(Multipurpose Main Extension) returned by an URL connection does not valid or the application is attempting to write to a read only URL connection.
The structure of the class UnknownServiceException is defined as :


public class java.io.UnknownServiceException extends java.lang.IOException{
//constructor
public UnknownServiceException();
//constructs an empty UnknownServiceException object that is an object with no message specified.
public UnknownServiceException(String message);
//constructs an UnknownServiceException object with the message specified.

}
 
All About Class UnknownServiceException in Java All About Class UnknownServiceException in Java Reviewed by Animesh Chatterjee on September 24, 2018 Rating: 5

No comments:

Powered by Blogger.