Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.exceptions
Class XRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by waggle.core.exceptions.XRuntimeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XAPIException, XIllegalArgumentException, XIllegalStateException, XNonReportableRuntimeException, XUnsupportedOperationException, XUnwrappedExceptionException

public class XRuntimeException
extends RuntimeException

Basic Waggle Runtime Exception.

See Also:
Serialized Form

Constructor Summary
XRuntimeException(String resourceID, Object... arguments)
          Create and format and exception and it's message string.

 

Method Summary
 Object[] getArguments()
          Return the arguments used to format this exceptions message.
 Date getDate()
          Return the Date of this exception.
 String getResourceID()
          Return the resource ID used to format this exceptions message.
 boolean isCause(Class<? extends Throwable> cause)
          Is the cause a reason for the exception.
 void printStackTrace(PrintStream s)
          Print this exception using our exception format.
 void printStackTrace(PrintWriter s)
          Print this exception using our exception format.

 

Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

XRuntimeException

public XRuntimeException(String resourceID,
                         Object... arguments)
Create and format and exception and it's message string.
Parameters:
resourceID - The resource ID used to format the message.
arguments - The arguments used to format the exception.

Method Detail

getResourceID

public String getResourceID()
Return the resource ID used to format this exceptions message.
Returns:
The resource ID used to format this exceptions message.

getArguments

public Object[] getArguments()
Return the arguments used to format this exceptions message.
Returns:
The arguments used to format this exceptions message.

getDate

public Date getDate()
Return the Date of this exception.
Returns:
the Date of this exception.

printStackTrace

public void printStackTrace(PrintWriter s)
Print this exception using our exception format.
Overrides:
printStackTrace in class Throwable
Parameters:
s - The stream.

printStackTrace

public void printStackTrace(PrintStream s)
Print this exception using our exception format.
Overrides:
printStackTrace in class Throwable
Parameters:
s - The writer.

isCause

public boolean isCause(Class<? extends Throwable> cause)
Is the cause a reason for the exception.
Parameters:
cause - The cause we are looking for.
Returns:
True if the specified cause is a cause.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.