public class HybsSystemException extends RuntimeException
共通的に使用されるエクセプションクラスです。
RuntimeException を継承しているため、try{} catch() {} は不要です。
本システムでは、すべてこのエクセプションクラスを継承させたクラスを作成し、用途によって、
使い分けるようにします。つまり、他のどのような、Throwable が発生したとしても、一旦、
try{} catch() {} で受けて、このクラスのサブクラスを、再度 throw させます。
そして、必要であれば、try{} catch() {} を用いて捕まえて、それぞれの対応処理を行います。
このクラスには、元々の発生したエクセプション( Throwable )を引数にとり、
その printStackTrace()情報を、自分自身のトレース情報に含めます。
また、引数にオブジェクトを渡すことができますので、object.toString() で、オブジェクトの
状態を表示できるようにしておけば、手軽にデバッグに使うことが可能になります。| 5.6.7.1 (2013/08/09) エラーに、エンジンのバージョン等のシステム関係の情報を付与します。 |
| 6.0.2.5 (2014/10/31) エラーに、エラー箇所の情報も与えます。 |
| コンストラクタと説明 |
|---|
HybsSystemException()
詳細メッセージを指定しないで HybsSystemException を構築します。
|
HybsSystemException(String str)
指定された詳細メッセージを持つ HybsSystemException を構築します。
|
HybsSystemException(String str,
Throwable th)
指定されたオブジェクトを受け取る HybsSystemException を構築します。
|
HybsSystemException(Throwable th)
指定された詳細メッセージを持つ HybsSystemException を構築します。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HybsSystemException()
| 5.6.7.1 (2013/08/09) エラーに、エンジンのバージョン等の情報を付与します。 |
public HybsSystemException(String str)
str - 詳細メッセージ| 5.6.7.1 (2013/08/09) エラーに、エンジンのバージョン等の情報を付与します。 |
public HybsSystemException(Throwable th)
th - 例外Throwableオブジェクト| 5.6.7.1 (2013/08/09) エラーに、エンジンのバージョン等の情報を付与します。 |
public HybsSystemException(String str, Throwable th)
str - 詳細メッセージth - 例外ThrowableオブジェクトRuntimeException.RuntimeException(String,Throwable)| 3.5.5.4 (2004/04/15) 引数を、RuntimeException(String , Throwable )にあわせます。 |
| 5.6.7.1 (2013/08/09) エラーに、エンジンのバージョン等の情報を付与します。 |
Webアプリケーションフレームワーク openGionCopyright (c) 2009 The openGion Project.