Class UnsupportedMediaTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.cdancy.jenkins.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. Some Jenkins REST API accept 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(String arg0)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnsupportedMediaTypeException
public UnsupportedMediaTypeException(String arg0)
-
-