Class TrinoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.trino.spi.TrinoException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessDeniedException
,DuplicateMapKeyException
,NotFoundException
,TimeZoneNotSupportedException
,TrinoTransportException
,TypeNotFoundException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTrinoException
(ErrorCodeSupplier errorCode, String message) TrinoException
(ErrorCodeSupplier errorCode, String message, Throwable cause) TrinoException
(ErrorCodeSupplier errorCode, Throwable throwable) TrinoException
(ErrorCodeSupplier errorCodeSupplier, Optional<Location> location, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TrinoException
-
TrinoException
-
TrinoException
-
TrinoException
public TrinoException(ErrorCodeSupplier errorCodeSupplier, Optional<Location> location, String message, Throwable cause)
-
-
Method Details
-
getErrorCode
-
getLocation
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getRawMessage
-