|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.basex.query.xquery.util.Err
public final class Err
This class is supposed to support a consistent error output.
| Method Summary | |
|---|---|
static Item |
cast(Type t,
Item it)
Throws a numeric type exception. |
static int |
cmp(Item it1,
Item it2)
Throws a comparison exception. |
static Item |
date(Type t,
java.lang.String ex)
Throws a date format exception. |
static Item |
dur(java.lang.String inf,
Item it)
Throws a duration type exception. |
static Item |
empty(Expr ex)
Throws a empty sequence exception. |
static Item |
nodes(Expr ex)
Throws a node exception. |
static Item |
num(java.lang.String inf,
Item it)
Throws a numeric type exception. |
static Item |
or(java.lang.Object[] err,
java.lang.Object... x)
Throws an exception. |
static Item |
or(java.lang.String err,
java.lang.Object... x)
Throws an exception. |
static Item |
range(Type t,
byte[] v)
Throws a date range exception. |
static Item |
seq(Expr e,
Expr ex)
Throws a sequence exception. |
static Item |
type(java.lang.String inf,
Type t,
Item it)
Throws a type exception. |
static Item |
value(Type t,
java.lang.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 Item cast(Type t,
Item it)
throws XQException
t - expression cast typeit - item
XQException - evaluation exception
public static int cmp(Item it1,
Item it2)
throws XQException
it1 - first itemit2 - second item
XQException - evaluation exception
public static Item date(Type t,
java.lang.String ex)
throws XQException
t - expected typeex - example format
XQException - evaluation exception
public static Item dur(java.lang.String inf,
Item it)
throws XQException
inf - expression infoit - item
XQException - evaluation exception
public static Item empty(Expr ex)
throws XQException
ex - expression
XQException - evaluation exception
public static Item nodes(Expr ex)
throws XQException
ex - expression
XQException - evaluation exception
public static Item num(java.lang.String inf,
Item it)
throws XQException
inf - expression infoit - item
XQException - evaluation exception
public static Item or(java.lang.Object[] err,
java.lang.Object... x)
throws XQException
err - error messagex - extended info
XQException - evaluation exception
public static Item or(java.lang.String err,
java.lang.Object... x)
throws XQException
err - error messagex - extended info
XQException - evaluation exception
public static Item range(Type t,
byte[] v)
throws XQException
t - expected typev - value
XQException - evaluation exception
public static Item seq(Expr e,
Expr ex)
throws XQException
e - sequence itemex - expression
XQException - evaluation exception
public static Item type(java.lang.String inf,
Type t,
Item it)
throws XQException
t - expected typeinf - expression infoit - item
XQException - evaluation exception
public static Item value(Type t,
java.lang.Object v)
throws XQException
t - expected typev - value
XQException - evaluation exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||