/* */ package com.apple.cocoa.foundation;
/* */
/* */ import com.apple.cocoa.foundation._private.NSMemoryOutputStream;
/* */ import java.io.PrintStream;
/* */
/* */ public class NSException extends RuntimeException
/* */ {
/* */ protected String _name;
/* */ protected Object _userInfo;
/* */
/* */ public NSException()
/* */ {
/* */ }
/* */
/* */ public NSException(String paramString)
/* */ {
/* 34 */ super(paramString);
/* */ }
/* */
/* */ public NSException(String paramString1, String paramString2, Object paramObject)
/* */ {
/* 39 */ super(paramString2);
/* 40 */ this._name = paramString1;
/* 41 */ this._userInfo = paramObject;
/* */ }
/* */ public String name() {
/* 44 */ return this._name;
/* */ }
/* 46 */ public Object userInfo() { return this._userInfo; }
/* */
/* */ public String toString()
/* */ {
/* 50 */ String str = this._name != null ? this._name : getClass().getName();
/* 51 */ return str + ": " + getMessage();
/* */ }
/* */
/* */ public static String getStackTrace(Throwable paramThrowable)
/* */ {
/* 59 */ NSMemoryOutputStream localNSMemoryOutputStream = new NSMemoryOutputStream();
/* 60 */ PrintStream localPrintStream = new PrintStream(localNSMemoryOutputStream);
/* 61 */ paramThrowable.printStackTrace(localPrintStream);
/* 62 */ localPrintStream.flush();
/* 63 */ return localNSMemoryOutputStream.getBytesAsString();
/* */ }
/* */ }
/* Location: Z:\System\Library\Java\
* Qualified Name: com.apple.cocoa.foundation.NSException
* JD-Core Version: 0.6.2
*/