totalcross.lang
Class ArrayStoreException

totalcross.lang.Object
  extended by totalcross.lang.Throwable
      extended by totalcross.lang.Exception
          extended by totalcross.lang.RuntimeException
              extended by totalcross.lang.ArrayStoreException

public class ArrayStoreException
extends RuntimeException

Thrown when the source and target arrays are not compatible when using Vm.arrayCopy.

IMPORTANT: the totalcross.lang package is the java.lang that will be used in the device. You CANNOT use nor import totalcross.lang package in desktop. When tc.Deploy is called, all references to java.lang are replaced by totalcross.lang automatically. Given this, you must use only the classes and methods that exists BOTH in java.lang and totalcross.lang. For example, you can't use totalcross.lang.ClassLoader because there are no totalcross.lang.ClassLoader. Another example, you can't use totalcross.lang.String.indexOfIgnoreCase because there are no totalcross.lang.String.indexOfIgnoreCase method. Trying to use a class or method from the java.lang package that has no correspondence with totalcross.lang will make the tc.Deploy program to abort, informing where the problem occured. A good idea is to always refer to this javadoc to know what is and what isn't available.

See Also:
Vm.arrayCopy(totalcross.lang.Object, int, totalcross.lang.Object, int, int)

Field Summary
 
Fields inherited from class totalcross.lang.Throwable
msg, trace
 
Constructor Summary
ArrayStoreException()
          Constructs an empty Exception.
ArrayStoreException(String message)
          Constructs an exception with the given message.
 
Method Summary
 
Methods inherited from class totalcross.lang.Throwable
getMessage, printStackTrace, printStackTrace, toString
 
Methods inherited from class totalcross.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayStoreException

public ArrayStoreException()
Constructs an empty Exception.


ArrayStoreException

public ArrayStoreException(String message)
Constructs an exception with the given message.