Spring for Android

org.springframework.http
Class InvalidMediaTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.springframework.http.InvalidMediaTypeException
All Implemented Interfaces:
java.io.Serializable

public class InvalidMediaTypeException
extends java.lang.IllegalArgumentException

Exception thrown from MediaType.parseMediaType(String) in case of encountering an invalid media type specification String.

Since:
2.0
Author:
Juergen Hoeller
See Also:
Serialized Form

Constructor Summary
InvalidMediaTypeException(java.lang.String mediaType, java.lang.String msg)
          Create a new InvalidMediaTypeException for the given media type.
 
Method Summary
 java.lang.String getMediaType()
          Return the offending media type.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvalidMediaTypeException

public InvalidMediaTypeException(java.lang.String mediaType,
                                 java.lang.String msg)
Create a new InvalidMediaTypeException for the given media type.

Parameters:
mediaType - the offending media type
msg - a detail message indicating the invalid part
Method Detail

getMediaType

public java.lang.String getMediaType()
Return the offending media type.


Spring for Android