Class QueryError
- java.lang.Object
-
- io.streamthoughts.azkarra.api.errors.Error
-
- io.streamthoughts.azkarra.api.query.result.QueryError
-
- All Implemented Interfaces:
Serializable
public class QueryError extends Error implements Serializable
A serializable error.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryError(Error error)
Creates a newQueryError
instance.QueryError(String message)
Creates a newQueryError
instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<QueryError>
allOf(List<Error> errors)
String
message()
static QueryError
of(Throwable t)
Creates a new error instance from the specifiedThrowable
.String
toString()
-
-
-
Constructor Detail
-
QueryError
public QueryError(String message)
Creates a newQueryError
instance.- Parameters:
message
- the error message.
-
QueryError
public QueryError(Error error)
Creates a newQueryError
instance.- Parameters:
error
- theError
.
-
-
Method Detail
-
of
public static QueryError of(Throwable t)
Creates a new error instance from the specifiedThrowable
.- Parameters:
t
- the exception.- Returns:
- a new
QueryError
instance
-
allOf
public static List<QueryError> allOf(List<Error> errors)
-
-