Class HostResourceException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.compuware.api.topaz.TopazAPIException
-
- com.compuware.api.topaz.hostresources.HostResourceException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AllocationFailedException
,DataSetAccessException
,DataSetExistsException
,DataSetInUseException
,DataSetMigratedException
,DataSetNotFoundException
,DataSetOutOfSpaceException
,DefinitionFailedException
,GenerationDataGroupExistsException
,GenerationDataGroupNotFoundException
,MemberAlreadyExistsException
,MemberInUseException
,MemberNotFoundException
public class HostResourceException extends TopazAPIException
HostResourceException
is the superclass for all checked exceptions related to host resources.- Since:
- 1.0.0
- Version:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HostResourceException(String message, String localizedMessage, String hostResourceName)
Constructs a new host resource exception with the specified detail messages and resource name.HostResourceException(String message, String localizedMessage, Throwable cause, String hostResourceName)
Constructs a new host resource exception with the specified detail messages, cause, and resource name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHostResourceName()
Returns the name of the host resource associated with this exception.-
Methods inherited from class com.compuware.api.topaz.TopazAPIException
getLocalizedMessage
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
HostResourceException
public HostResourceException(String message, String localizedMessage, String hostResourceName)
Constructs a new host resource exception with the specified detail messages and resource name. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- the non-localized detail message (which is saved for later retrieval by theThrowable.getMessage()
method).localizedMessage
- the localized description (which is saved for later retrieval by theTopazAPIException.getLocalizedMessage()
method). (Anull
value is permitted, in which casegetLocalizedMessage()
will return the non-localized detail message.)hostResourceName
- the name of the host resource associated with this exception- Since:
- 1.0.0
-
HostResourceException
public HostResourceException(String message, String localizedMessage, Throwable cause, String hostResourceName)
Constructs a new host resource exception with the specified detail messages, cause, and resource name.Note that the detail message associated with
cause
is not automatically incorporated in this exception's detail message.- Parameters:
message
- the non-localized detail message (which is saved for later retrieval by theThrowable.getMessage()
method).localizedMessage
- the localized description (which is saved for later retrieval by theTopazAPIException.getLocalizedMessage()
method). (Anull
value is permitted, in which casegetLocalizedMessage()
will return the non-localized detail message.)cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). (Anull
value is permitted, and indicates that the cause is nonexistent or unknown.)hostResourceName
- the name of the host resource associated with this exception- Since:
- 1.0.0
-
-
Method Detail
-
getHostResourceName
public String getHostResourceName()
Returns the name of the host resource associated with this exception.- Returns:
- the host resource name
- Since:
- 1.0.0
-
-