Class CryptoException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    NoSuchAlgorithmException

    public class CryptoException
    extends java.lang.Exception
    Thrown when something wrong occurs when using the cryptographic algorithms.

    If you get a totalcross.crypto.CryptoException: Illegal key size, you must download the strong cryptography files from Oracle site. In order to do that, go to the ReadMe file whole link is below the download link. In this file, search for "Unlimited Strength Java Cryptography Extension" and follow the instructions.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CryptoException()
      Constructs an empty Exception.
      CryptoException​(java.lang.String msg)
      Constructs an exception with the given message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • CryptoException

        public CryptoException()
        Constructs an empty Exception.
      • CryptoException

        public CryptoException​(java.lang.String msg)
        Constructs an exception with the given message.
        Parameters:
        msg - The exception message.