Beispiel #1
0
        protected InvocationEvent(Object source, int id, java.lang.Runnable runnable,
            Object notifier, bool catchExceptions)
            : base(source, id)
        {
            // awt.18C=Cannot invoke null runnable
            System.Diagnostics.Debug.Assert(runnable != null, "Cannot invoke null runnable"); //$NON-NLS-1$

            if (source == null)
            {
                // awt.18D=Source is null
                throw new java.lang.IllegalArgumentException("Source is null"); //$NON-NLS-1$
            }
            this.runnable = runnable;
            this.notifier = notifier;
            this.catchExceptions = catchExceptions;

            throwable = null;
            when = java.lang.SystemJ.currentTimeMillis();
        }
 /**
  * Constructs a new <code>FunctorException</code> without specified
  * detail message.
  */
 public FunctorException()
     : base()
 {
     this.rootCause = null;
 }
 /**
  * Constructs a new <code>TransformException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public TransformException(java.lang.Throwable cause)
     : base(cause==null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #4
0
 public void dispatch()
 {
     if (!catchExceptions)
     {
         runAndNotify();
     }
     else
     {
         try
         {
             runAndNotify();
         }
         catch (java.lang.Throwable t)
         {
             throwable = t;
         }
     }
 }
Beispiel #5
0
 /*
  * Constructs a new <code>MarshalException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public MarshalException(String message, java.lang.Throwable cause) :
     base(message)
 {
     this.cause = cause;
 }
 /**
  * Create a new TransformerException.
  *
  * @param message The error or warning message.
  */
 public TransformerException(String message)
     : base(message)
 {
     this.containedException = null;
     this.locator            = null;
 }
Beispiel #7
0
 /**
  * Creates an SQLNonTransientConnectionException object. The Reason string
  * is set to the null if cause == null or cause.toString() if
  * cause!=null,and the cause java.lang.Throwable object is set to the given cause
  * java.lang.Throwable object.
  *
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLNonTransientConnectionException(java.lang.Throwable cause) :
     base(cause)
 {
 }
 /**
  * Constructs a new <code>URIReferenceException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public URIReferenceException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }
Beispiel #9
0
 /**
  * Creates an SQLFeatureNotSupportedException object. The Reason string is
  * set to the given reason string, the SQLState string is set to the given
  * SQLState string , the Error Code is set to the given error code value,
  * and the cause java.lang.Throwable object is set to the given cause java.lang.Throwable
  * object.
  *
  * @param reason
  *            the string to use as the Reason string
  * @param sqlState
  *            the string to use as the SQLState string
  * @param vendorCode
  *            the integer value for the error code
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLFeatureNotSupportedException(String reason, String sqlState,
                                        int vendorCode, java.lang.Throwable cause) :
     base(reason, sqlState, vendorCode, cause)
 {
 }
Beispiel #10
0
 /**
  * Creates an SQLFeatureNotSupportedException object. The Reason string is
  * set to the given and the cause java.lang.Throwable object is set to the given cause
  * java.lang.Throwable object.
  *
  * @param reason
  *            the string to use as the Reason string
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLFeatureNotSupportedException(String reason, java.lang.Throwable cause) :
     base(reason, cause)
 {
 }
Beispiel #11
0
 /*
  * Constructs a new <code>KeySelectorException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public KeySelectorException(java.lang.Throwable cause) :
     base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
 /**
  * Constructs a new <code>KeySelectorException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public KeySelectorException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }
 /**
  * Constructs a new <code>KeySelectorException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public KeySelectorException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
 /**
  * Constructs a new <code>XMLSignatureException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public XMLSignatureException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * nested <code>Throwable</code> root cause.
  *
  * @param rootCause  the exception or error that caused this exception
  *                   to be thrown.
  */
 public FunctorException(java.lang.Throwable rootCause) :
     base((rootCause == null ? null : rootCause.getMessage()))
 {
     this.rootCause = rootCause;
 }
Beispiel #16
0
 /**
  * Constructs a new {@code InvocationTargetException} instance with its
  * cause / target exception filled in.
  *
  * @param exception
  *            the exception which occurred while running the Method or
  *            Constructor
  */
 public InvocationTargetException(java.lang.Throwable exception)
     : base(null, exception)
 {
     target = exception;
 }
Beispiel #17
0
 /**
  * Creates an SQLFeatureNotSupportedException object. The Reason string is
  * set to the null if cause == null or cause.toString() if cause!=null,and
  * the cause java.lang.Throwable object is set to the given cause java.lang.Throwable object.
  *
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLFeatureNotSupportedException(java.lang.Throwable cause) :
     base(cause)
 {
 }
Beispiel #18
0
 public IOException(java.lang.Throwable cause) : base(cause)
 {
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * detail message and nested <code>Throwable</code> root cause.
  *
  * @param msg        the error message.
  * @param rootCause  the exception or error that caused this exception
  *                   to be thrown.
  */
 public FunctorException(String msg, java.lang.Throwable rootCause)
     : base(msg)
 {
     this.rootCause = rootCause;
 }
 /**
  * Wrap an existing exception in a TransformerException.
  *
  * @param message The error or warning message, or null to
  *                use the message from the embedded exception.
  * @param locator The locator object for the error or warning.
  * @param e Any exception
  */
 public TransformerException(String message, SourceLocator locator,
                         java.lang.Throwable e)
     : base(message)
 {
     this.containedException = e;
     this.locator            = locator;
 }
 /**
  * Constructs a new <code>FunctorException</code> without specified
  * detail message.
  */
 public FunctorException()
     : base()
 {
     this.rootCause = null;
 }
 /**
  * Wrap an existing exception in a TransformerException.
  *
  * <p>This is used for throwing processor exceptions before
  * the processing has started.</p>
  *
  * @param message The error or warning message, or null to
  *                use the message from the embedded exception.
  * @param e Any exception
  */
 public TransformerException(String message, java.lang.Throwable e)
     : base(((message == null) || (message.length() == 0))
       ? e.toString()
       : message)
 {
     this.containedException = e;
     this.locator            = null;
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * detail message.
  *
  * @param msg  the error message.
  */
 public FunctorException(String msg)
     : base(msg)
 {
     this.rootCause = null;
 }
Beispiel #24
0
 protected UndeclaredThrowableException(java.lang.Throwable exception) : base(exception)
 {
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * nested <code>Throwable</code> root cause.
  *
  * @param rootCause  the exception or error that caused this exception
  *                   to be thrown.
  */
 public FunctorException(java.lang.Throwable rootCause)
     : base((rootCause == null ? null : rootCause.getMessage()))
 {
     this.rootCause = rootCause;
 }
 /**
  * Constructs a new <code>NoSuchMechanismException</code> with the
  * specified cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code> (which typically
  * contains the class and detail message of <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public NoSuchMechanismException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #27
0
        /**
         * Constructs a {@code LogRecord} object using the supplied the logging
         * level and message. The millis property is set to the current time. The
         * sequence property is set to a new unique value, allocated in increasing
         * order within the virtual machine. The thread ID is set to a unique value
         * for the current thread. All other properties are set to {@code null}.
         *
         * @param level
         *            the logging level, may not be {@code null}.
         * @param msg
         *            the raw message.
         * @throws NullPointerException
         *             if {@code level} is {@code null}.
         */
        public LogRecord(Level level, String msg)
        {
            if (null == level) {
            // logging.4=The 'level' parameter is null.
            throw new java.lang.NullPointerException("The 'level' parameter is null."); //$NON-NLS-1$
            }
            this.level = level;
            this.message = msg;
            this.millis = java.lang.SystemJ.currentTimeMillis();

            lock (typeof(LogRecord).getClass()) {
            this.sequenceNumber = currentSequenceNumber++;
            java.lang.Integer id = currentThreadId.get();
            if (null == id) {
                this.threadID = initThreadId;
                currentThreadId.set(java.lang.Integer.valueOf(initThreadId++));
            } else {
                this.threadID = id.intValue();
            }
            }

            this.sourceClassName = null;
            this.sourceMethodName = null;
            this.loggerName = null;
            this.parameters = null;
            this.resourceBundle = null;
            this.resourceBundleName = null;
            this.thrown = null;
        }
 /**
  * Constructs a new <code>XMLSignatureException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public XMLSignatureException(java.lang.Throwable cause)
     : base(cause==null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #29
0
 /**
  * Sets the {@code Throwable} object associated with this log record.
  *
  * @param thrown
  *            the new {@code Throwable} object to associate with this log
  *            record.
  */
 public void setThrown(java.lang.Throwable thrown)
 {
     this.thrown = thrown;
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * detail message.
  *
  * @param msg  the error message.
  */
 public FunctorException(String msg)
     : base(msg)
 {
     this.rootCause = null;
 }
 /*
  * Constructs a new {@code InvalidPreferencesFormatException} instance with
  * a detailed exception message and a nested {@code Throwable}.
  *
  * @param s
  *            the detailed exception message.
  * @param t
  *            the nested {@code Throwable}.
  */
 public InvalidPreferencesFormatException(String s, java.lang.Throwable t) :
     base(s, t)
 {
 }
 /**
  * Constructs a new <code>FunctorException</code> with specified
  * detail message and nested <code>Throwable</code> root cause.
  *
  * @param msg        the error message.
  * @param rootCause  the exception or error that caused this exception
  *                   to be thrown.
  */
 public FunctorException(String msg, java.lang.Throwable rootCause)
     : base(msg)
 {
     this.rootCause = rootCause;
 }
 /*
  * Constructs a new {@code InvalidPreferencesFormatException} instance with
  * a nested {@code Throwable}.
  *
  * @param t
  *            the nested {@code Throwable}.
  */
 public InvalidPreferencesFormatException(java.lang.Throwable t) :
     base(t)
 {
 }
 /**
  * Constructs a new <code>URIReferenceException</code> with the specified
  * cause and a detail message of <code>(cause==null ? null :
  * cause.toString())</code> (which typically contains the class and detail
  * message of <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public URIReferenceException(java.lang.Throwable cause)
     : base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #35
0
 public AnnotationFormatError(String message, java.lang.Throwable cause) : base(message, cause)
 {
 }
Beispiel #36
0
 public IOException(String message, java.lang.Throwable cause) : base(message, cause)
 {
 }
Beispiel #37
0
 public AnnotationFormatError(java.lang.Throwable cause) : base(cause)
 {
 }
Beispiel #38
0
 /**
  * Creates an SQLNonTransientConnectionException object. The Reason string
  * is set to the given reason string, the SQLState string is set to the
  * given SQLState string , the Error Code is set to the given error code
  * value, and the cause java.lang.Throwable object is set to the given cause java.lang.Throwable
  * object.
  *
  * @param reason
  *            the string to use as the Reason string
  * @param sqlState
  *            the string to use as the SQLState string
  * @param vendorCode
  *            the integer value for the error code
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLNonTransientConnectionException(String reason, String sqlState,
                                           int vendorCode, java.lang.Throwable cause) :
     base(reason, sqlState, vendorCode, cause)
 {
 }
 /**
  * Creates an SQLNonTransientException object. The Reason string is set to
  * the given reason string, the SQLState string is set to the given SQLState
  * string and the cause Throwable object is set to the given cause Throwable
  * object.
  *
  * @param reason
  *            the string to use as the Reason string
  * @param sqlState
  *            the string to use as the SQLState string
  * @param cause
  *            the Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLNonTransientException(String reason, String sqlState,
                                 java.lang.Throwable cause) :
     base(reason, sqlState, cause)
 {
 }
 /**
  * Create a new TransformerException from a message and a Locator.
  *
  * <p>This constructor is especially useful when an application is
  * creating its own exception from within a DocumentHandler
  * callback.</p>
  *
  * @param message The error or warning message.
  * @param locator The locator object for the error or warning.
  */
 public TransformerException(String message, SourceLocator locator)
     : base(message)
 {
     this.containedException = null;
     this.locator            = locator;
 }
 /**
  * Constructs a new <code>BufferOverflowException</code>.
  */
 public BufferOverflowException()
     : base()
 {
     throwable = null;
 }
        /**
         * Initializes the <i>cause</i> of this throwable to the specified value.
         * (The cause is the throwable that caused this throwable to get thrown.)
         *
         * <p/>This method can be called at most once.  It is generally called from
         * within the constructor, or immediately after creating the
         * throwable.  If this throwable was created
         * with {@link #TransformerException(Throwable)} or
         * {@link #TransformerException(String,Throwable)}, this method cannot be called
         * even once.
         *
         * @param  cause the cause (which is saved for later retrieval by the
         *         {@link #getCause()} method).  (A <tt>null</tt> value is
         *         permitted, and indicates that the cause is nonexistent or
         *         unknown.)
         * @return  a reference to this <code>Throwable</code> instance.
         * @throws IllegalArgumentException if <code>cause</code> is this
         *         throwable.  (A throwable cannot
         *         be its own cause.)
         * @throws IllegalStateException if this throwable was
         *         created with {@link #TransformerException(Throwable)} or
         *         {@link #TransformerException(String,Throwable)}, or this method has already
         *         been called on this throwable.
         */
        public override java.lang.Throwable initCause(java.lang.Throwable cause)
        {
            lock (this) {
                if (this.containedException != null) {
                    throw new java.lang.IllegalStateException ("Can't overwrite cause");
                }

                if (cause == this) {
                    throw new java.lang.IllegalArgumentException (
                        "Self-causation not permitted");
                }

                this.containedException = cause;

                return this;
            }
        }
 /**
  * Construct a new <code>BufferOverflowException</code>.
  *
  * @param message  the detail message for this exception
  * @param exception  the root cause of the exception
  */
 public BufferOverflowException(String message, java.lang.Throwable exception)
     : base(message)
 {
     throwable = exception;
 }
 /**
  * Create a new TransformerException wrapping an existing exception.
  *
  * @param e The exception to be wrapped.
  */
 public TransformerException(java.lang.Throwable e)
     : base(e.toString())
 {
     this.containedException = e;
     this.locator            = null;
 }
 /**
  * Constructs a new <code>BufferOverflowException</code>.
  */
 public BufferOverflowException()
     : base()
 {
     throwable = null;
 }
 /**
  * Constructs a new {@code InvalidPropertiesFormatException} with the cause
  * for the Exception.
  *
  * @param c
  *           the cause for the Exception.
  */
 public InvalidPropertiesFormatException(java.lang.Throwable c)
 {
     initCause(c);
 }
 /**
  * Construct a new <code>BufferOverflowException</code>.
  *
  * @param message  the detail message for this exception
  * @param exception  the root cause of the exception
  */
 public BufferOverflowException(String message, java.lang.Throwable exception)
     : base(message)
 {
     throwable = exception;
 }
Beispiel #48
0
 /*
  * Constructs a new <code>MarshalException</code> with the specified cause
  * and a detail message of <code>(cause==null ? null : cause.toString())
  * </code> (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public MarshalException(java.lang.Throwable cause) :
     base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #49
0
 /*
  * Constructs a new <code>XMLSignatureException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public XMLSignatureException(String message, java.lang.Throwable cause) : base(message)
 {
     this.cause = cause;
 }
Beispiel #50
0
 /*
  * Constructs a new <code>XMLSignatureException</code> with the specified
  * cause and a detail message of
  * <code>(cause==null ? null : cause.toString())</code>
  * (which typically contains the class and detail message of
  * <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public XMLSignatureException(java.lang.Throwable cause) :
     base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
Beispiel #51
0
 /**
  * Constructs a new exception with the specified cause and a detail message of <code>(cause==null ?
  * null : cause.toString())</code> (which typically contains the class and detail message of <code>cause</code>).
  * This constructor is useful for exceptions that are little more than wrappers for other throwables.
  *
  * @param cause
  *            The cause which is saved for later retrieval by the {@link #getCause()} method. A <code>null</code>
  *            value is permitted, and indicates that the cause is nonexistent or unknown.
  * @since 1.4
  */
 public EncoderException(java.lang.Throwable cause)
     : base(cause)
 {
 }
 /*
  * Creates an SQLNonTransientConnectionException object. The Reason string
  * is set to the given and the cause java.lang.Throwable object is set to the given
  * cause java.lang.Throwable object.
  *
  * @param reason
  *            the string to use as the Reason string
  * @param cause
  *            the java.lang.Throwable object for the underlying reason this
  *            SQLException
  */
 public SQLNonTransientConnectionException(String reason, java.lang.Throwable cause) :
     base(reason, cause)
 {
 }
Beispiel #53
0
 /**
  * Constructs a new <code>URIReferenceException</code> with the specified
  * cause and a detail message of <code>(cause==null ? null :
  * cause.toString())</code> (which typically contains the class and detail
  * message of <code>cause</code>).
  *
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *        indicates that the cause is nonexistent or unknown.)
  */
 public URIReferenceException(java.lang.Throwable cause) :
     base(cause == null ? null : cause.toString())
 {
     this.cause = cause;
 }
 /**
  * Constructs a new <code>NoSuchMechanismException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public NoSuchMechanismException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }
Beispiel #55
0
 /**
  * Constructs a new <code>URIReferenceException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public URIReferenceException(String message, java.lang.Throwable cause) :
     base(message)
 {
     this.cause = cause;
 }
Beispiel #56
0
 /**
  * Constructs a new <code>TransformException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public TransformException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }
Beispiel #57
0
 /**
  * Constructs a new <code>MarshalException</code> with the
  * specified detail message and cause.
  * <p>Note that the detail message associated with
  * <code>cause</code> is <i>not</i> automatically incorporated in
  * this exception's detail message.
  *
  * @param message the detail message
  * @param cause the cause (A <tt>null</tt> value is permitted, and
  *	      indicates that the cause is nonexistent or unknown.)
  */
 public MarshalException(String message, java.lang.Throwable cause)
     : base(message)
 {
     this.cause = cause;
 }