public class AssetDataUnavailableException extends DataUnavailableException
Constructor and Description |
---|
AssetDataUnavailableException(String message,
int assetIndex,
Object assetInstance)
Initializes a new instance of the
AssetDataUnavailableException class
with a specific error message and a reference to the asset which caused the exception. |
AssetDataUnavailableException(String message,
int assetIndex,
Object assetInstance,
RuntimeException innerException)
Initializes a new instance of the
AssetDataUnavailableException class
with a specific error message and a reference to the asset which caused the exception. |
Modifier and Type | Method and Description |
---|---|
int |
getAssetIndex()
Gets the index of the asset that caused the exception, based on the order of the
assets when the computation was created.
|
Object |
getAssetInstance()
Gets the asset that caused the exception, if available.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AssetDataUnavailableException(String message, int assetIndex, Object assetInstance)
AssetDataUnavailableException
class
with a specific error message and a reference to the asset which caused the exception.message
- The error message that explains the reason for the exception.assetIndex
- The index of the asset that caused the exception, based on the order
of the assets when the computation was created.assetInstance
- A reference to the asset that caused the exception.public AssetDataUnavailableException(String message, int assetIndex, Object assetInstance, RuntimeException innerException)
AssetDataUnavailableException
class
with a specific error message and a reference to the asset which caused the exception.message
- The error message that explains the reason for the exception.assetIndex
- The index of the asset that caused the exception, based on the order
of the assets when the computation was created.assetInstance
- A reference to the asset that caused the exception.innerException
- The exception that is the cause of the current exception, or null
if no inner exception is specified.