Class ReportableException
java.lang.Object
com.azure.resourcemanager.datamigration.models.ReportableException
Exception object for all custom exceptions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the actionableMessage property: Actionable steps for this exception.filePath()
Get the filePath property: The path to the file where exception occurred.hResult()
Get the hResult property: Coded numerical value that is assigned to a specific exception.Get the lineNumber property: The line number where exception occurred.message()
Get the message property: Error message.Get the stackTrace property: Stack trace.void
validate()
Validates the instance.withActionableMessage
(String actionableMessage) Set the actionableMessage property: Actionable steps for this exception.
-
Constructor Details
-
ReportableException
public ReportableException()Creates an instance of ReportableException class.
-
-
Method Details
-
message
Get the message property: Error message.- Returns:
- the message value.
-
actionableMessage
Get the actionableMessage property: Actionable steps for this exception.- Returns:
- the actionableMessage value.
-
withActionableMessage
Set the actionableMessage property: Actionable steps for this exception.- Parameters:
actionableMessage
- the actionableMessage value to set.- Returns:
- the ReportableException object itself.
-
filePath
Get the filePath property: The path to the file where exception occurred.- Returns:
- the filePath value.
-
lineNumber
Get the lineNumber property: The line number where exception occurred.- Returns:
- the lineNumber value.
-
hResult
Get the hResult property: Coded numerical value that is assigned to a specific exception.- Returns:
- the hResult value.
-
stackTrace
Get the stackTrace property: Stack trace.- Returns:
- the stackTrace value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-