javax.activation

Class MimeTypeParseException


public class MimeTypeParseException
extends Exception

Exception thrown to indicate a malformed MIME content type.

Constructor Summary

MimeTypeParseException()
Constructs a MimeTypeParseException with no detail message.
MimeTypeParseException(String message)
MimeTypeParseException with the specified detail message.
MimeTypeParseException(String message, String token)
Constructs a MimeTypeParseException with the specified detail message and token in error.

Constructor Details

MimeTypeParseException

public MimeTypeParseException()
Constructs a MimeTypeParseException with no detail message.

MimeTypeParseException

public MimeTypeParseException(String message)
MimeTypeParseException with the specified detail message.
Parameters:
message - the exception message

MimeTypeParseException

public MimeTypeParseException(String message,
                              String token)
Constructs a MimeTypeParseException with the specified detail message and token in error.
Parameters:
message - the exception message
token - the token in error