Package tech.becoming.common.exceptions
Class NotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- tech.becoming.common.exceptions.AbstractRuntimeException
-
- tech.becoming.common.exceptions.NotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
public class NotFoundException extends AbstractRuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class tech.becoming.common.exceptions.AbstractRuntimeException
LOGGER
-
-
Constructor Summary
Constructors Constructor Description NotFoundException()NotFoundException(java.util.List<ExceptionDetail> details)NotFoundException(ExceptionDetail detail)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHttpCode()static <T> TthrowIfEmpty(java.util.Optional<T> optional)-
Methods inherited from class tech.becoming.common.exceptions.AbstractRuntimeException
toString
-
-
-
-
Constructor Detail
-
NotFoundException
public NotFoundException()
-
NotFoundException
public NotFoundException(java.util.List<ExceptionDetail> details)
-
NotFoundException
public NotFoundException(ExceptionDetail detail)
-
-
Method Detail
-
getHttpCode
public int getHttpCode()
- Specified by:
getHttpCodein classAbstractRuntimeException
-
throwIfEmpty
public static <T> T throwIfEmpty(java.util.Optional<T> optional)
-
-