Class ErrorValue
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.value.ErrorValue
-
- All Implemented Interfaces:
javax.jcr.Value
public class ErrorValue extends java.lang.Object implements javax.jcr.Value
Instances of this class represent aValue
which couldn't be retrieved. All its accessors throw aRepositoryException
.
-
-
Constructor Summary
Constructors Constructor Description ErrorValue(java.lang.Exception exception, int type)
ErrorValue(javax.jcr.RepositoryException e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.Binary
getBinary()
boolean
getBoolean()
java.util.Calendar
getDate()
java.math.BigDecimal
getDecimal()
double
getDouble()
long
getLong()
java.io.InputStream
getStream()
java.lang.String
getString()
int
getType()
java.lang.String
toString()
-
-
-
Method Detail
-
getString
public java.lang.String getString() throws javax.jcr.RepositoryException
- Specified by:
getString
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getStream
public java.io.InputStream getStream() throws javax.jcr.RepositoryException
- Specified by:
getStream
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException
- Specified by:
getBinary
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getLong
public long getLong() throws javax.jcr.RepositoryException
- Specified by:
getLong
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getDouble
public double getDouble() throws javax.jcr.RepositoryException
- Specified by:
getDouble
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getDecimal
public java.math.BigDecimal getDecimal() throws javax.jcr.RepositoryException
- Specified by:
getDecimal
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getDate
public java.util.Calendar getDate() throws javax.jcr.RepositoryException
- Specified by:
getDate
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getBoolean
public boolean getBoolean() throws javax.jcr.RepositoryException
- Specified by:
getBoolean
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
-
getType
public int getType()
- Specified by:
getType
in interfacejavax.jcr.Value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-