PTP
Release 7.0

org.eclipse.ptp.core.util
Class CoreExceptionUtils

java.lang.Object
  extended by org.eclipse.ptp.core.util.CoreExceptionUtils

public class CoreExceptionUtils
extends java.lang.Object

Convenience methods for handling CoreExceptions and Status.ERROR.

Since:
5.0

Method Summary
static org.eclipse.core.runtime.IStatus getErrorStatus(java.lang.String message, java.lang.Throwable t)
          Obtain an IStatus instance with the given message and throwable.
static org.eclipse.core.runtime.CoreException newException(java.lang.String message)
          Obtain a CoreException instance with the given message.
static org.eclipse.core.runtime.CoreException newException(java.lang.String message, java.lang.Throwable t)
          Obtain a CoreException instance with the given message and throwable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getErrorStatus

public static org.eclipse.core.runtime.IStatus getErrorStatus(java.lang.String message,
                                                              java.lang.Throwable t)
Obtain an IStatus instance with the given message and throwable.

Parameters:
message -
t -
Returns:
error status object

newException

public static org.eclipse.core.runtime.CoreException newException(java.lang.String message,
                                                                  java.lang.Throwable t)
Obtain a CoreException instance with the given message and throwable.

Parameters:
message -
t -
Returns:
exception

newException

public static org.eclipse.core.runtime.CoreException newException(java.lang.String message)
Obtain a CoreException instance with the given message.

Parameters:
message -
Returns:
exception
Since:
7.0

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.