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 newQueryErrorinstance.QueryError(String message)Creates a newQueryErrorinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static List<QueryError>allOf(List<Error> errors)Stringmessage()static QueryErrorof(Throwable t)Creates a new error instance from the specifiedThrowable.StringtoString()
-
-
-
Constructor Detail
-
QueryError
public QueryError(String message)
Creates a newQueryErrorinstance.- Parameters:
message- the error message.
-
QueryError
public QueryError(Error error)
Creates a newQueryErrorinstance.- 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
QueryErrorinstance
-
allOf
public static List<QueryError> allOf(List<Error> errors)
-
-