Class ArgumentRequiredException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.karafra.bitchutedl.exceptions.ApiRuntimeException
-
- com.karafra.bitchutedl.exceptions.ArgumentRequiredException
-
- All Implemented Interfaces:
Serializable
public class ArgumentRequiredException extends ApiRuntimeException
Exception thrown when required argument is missing, status code 400.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Karafra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArgumentRequiredException(String name)Constructor used if only name of argument is known.ArgumentRequiredException(String name, Class<?> type)Constructor used if name and required type is known.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ArgumentRequiredException
public ArgumentRequiredException(String name)
Constructor used if only name of argument is known.- Parameters:
name- name of argument.
-
-