Class ErrorValue

  • All Implemented Interfaces:
    javax.jcr.Value

    public class ErrorValue
    extends java.lang.Object
    implements javax.jcr.Value
    Instances of this class represent a Value which couldn't be retrieved. All its accessors throw a RepositoryException.
    • Constructor Detail

      • ErrorValue

        public ErrorValue​(java.lang.Exception exception,
                          int type)
      • ErrorValue

        public ErrorValue​(javax.jcr.RepositoryException e)
    • Method Detail

      • getString

        public java.lang.String getString()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getString in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getStream

        public java.io.InputStream getStream()
                                      throws javax.jcr.RepositoryException
        Specified by:
        getStream in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getBinary

        public javax.jcr.Binary getBinary()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getBinary in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getLong

        public long getLong()
                     throws javax.jcr.RepositoryException
        Specified by:
        getLong in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDouble

        public double getDouble()
                         throws javax.jcr.RepositoryException
        Specified by:
        getDouble in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDecimal

        public java.math.BigDecimal getDecimal()
                                        throws javax.jcr.RepositoryException
        Specified by:
        getDecimal in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getDate

        public java.util.Calendar getDate()
                                   throws javax.jcr.RepositoryException
        Specified by:
        getDate in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getBoolean

        public boolean getBoolean()
                           throws javax.jcr.RepositoryException
        Specified by:
        getBoolean in interface javax.jcr.Value
        Throws:
        javax.jcr.RepositoryException
      • getType

        public int getType()
        Specified by:
        getType in interface javax.jcr.Value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object