|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.query.util.Err
public final class Err
This class is supposed to support a consistent error output.
| Method Summary | |
|---|---|
static void |
cast(Type t,
Item it)
Throws a numeric type exception. |
static String |
chop(Object val)
Chops the specified input and returns the string. |
static void |
cmp(Item it1,
Item it2)
Throws a comparison exception. |
static void |
date(byte[] i,
Type t,
String ex)
Throws a date format exception. |
static void |
empty(Expr e)
Throws a empty sequence exception. |
static void |
nodes(Expr ex)
Throws a node exception. |
static void |
num(String inf,
Item it)
Throws a numeric type exception. |
static void |
or(Object[] err,
Object... x)
Throws an exception. |
static void |
range(Type t,
byte[] v)
Throws a date range exception. |
static void |
type(String inf,
Type t,
Item it)
Throws a type exception. |
static void |
value(Type t,
Object v)
Throws an invalid value exception. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void or(Object[] err,
Object... x)
throws QueryException
err - error messagex - extended info
QueryException - query exception
public static void type(String inf,
Type t,
Item it)
throws QueryException
inf - expression infot - expected typeit - item
QueryException - query exception
public static void date(byte[] i,
Type t,
String ex)
throws QueryException
i - inputt - expected typeex - example format
QueryException - query exception
public static void value(Type t,
Object v)
throws QueryException
t - expected typev - value
QueryException - query exception
public static void range(Type t,
byte[] v)
throws QueryException
t - expected typev - value
QueryException - query exception
public static void empty(Expr e)
throws QueryException
e - calling expression
QueryException - query exception
public static void cmp(Item it1,
Item it2)
throws QueryException
it1 - first itemit2 - second item
QueryException - query exception
public static void num(String inf,
Item it)
throws QueryException
inf - expression infoit - item
QueryException - query exception
public static void nodes(Expr ex)
throws QueryException
ex - expression
QueryException - query exception
public static void cast(Type t,
Item it)
throws QueryException
t - expression cast typeit - item
QueryException - query exceptionpublic static String chop(Object val)
val - input value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||