Package rasj

Class RasIllegalUShortValueException

  • All Implemented Interfaces:
    java.io.Serializable

    public class RasIllegalUShortValueException
    extends RasRuntimeException
    
     PURPOSE:
     This exception is thrown if a RasMArrayShort is trying to be sent to the
     server for ODMG type UShort where one or more cell values exceed 2^16 or are negative. Such cell values are illegal
     because the ODMG standard restricts unsigned short values (i.e. in the RasDaMan server)
     to 2 bytes, whereas java integer values have 4 bytes.
     Although in this case the server would store only the least 2 bytes of the cell value without throwing an
     exception, the java client interface does not allow sending such illegal short values in order
     to enforce application integrity.
    See Also:
    RasMArrayShort, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RasIllegalUShortValueException​(int illegalUShortValue)
      Standard constructor getting the illegal short value
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the error message.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RasIllegalUShortValueException

        public RasIllegalUShortValueException​(int illegalUShortValue)
        Standard constructor getting the illegal short value
        Parameters:
        illegalShortValue - the cell value that caused the error
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the error message.
        Overrides:
        getMessage in class RasRuntimeException
        Returns:
        the error message.