Class UnsupportedMediaTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.cdancy.bitbucket.rest.exception.UnsupportedMediaTypeException
-
- All Implemented Interfaces:
Serializable
public class UnsupportedMediaTypeException extends RuntimeException
The request entity has a Content-Type that the server does not support. Almost all of the Bitbucket REST API accepts application/json format, but check the individual resource documentation for more details. Additionally, double-check that you are setting the Content-Type header correctly on your request (e.g. using -H "Content-Type: application/json" in cURL).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnsupportedMediaTypeException()UnsupportedMediaTypeException(String arg0)UnsupportedMediaTypeException(String arg0, Throwable arg1)UnsupportedMediaTypeException(Throwable arg0)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-