com.starbase.util
Class Diagnostics

java.lang.Object
  |
  +--com.starbase.util.Diagnostics

public class Diagnostics
extends java.lang.Object

A simple utility class with methods for generating detailed system and error information.


Method Summary
static java.lang.String createBugReport(java.lang.Throwable err)
          Generates a detailed bug report for the specified exception.
static java.lang.String getSystemInfo()
          Returns a detailed string of the current runtime environment.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBugReport

public static java.lang.String createBugReport(java.lang.Throwable err)
Generates a detailed bug report for the specified exception. This includes details on the exception, the stack trace for the exception and general system information.

Parameters:
err - the exception to report (must not be null)
See Also:
Diagnostics.getSystemInfo()

getSystemInfo

public static java.lang.String getSystemInfo()
Returns a detailed string of the current runtime environment. This information includes, total and free memory, the current threads, the Java system properties and size, timestamp and MD5 details for any Java libraries on the classpath.



StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.