Class ReportableException

java.lang.Object
com.azure.resourcemanager.datamigration.models.ReportableException

public final class ReportableException extends Object
Exception object for all custom exceptions.
  • Constructor Details

    • ReportableException

      public ReportableException()
      Creates an instance of ReportableException class.
  • Method Details

    • message

      public String message()
      Get the message property: Error message.
      Returns:
      the message value.
    • actionableMessage

      public String actionableMessage()
      Get the actionableMessage property: Actionable steps for this exception.
      Returns:
      the actionableMessage value.
    • withActionableMessage

      public ReportableException withActionableMessage(String actionableMessage)
      Set the actionableMessage property: Actionable steps for this exception.
      Parameters:
      actionableMessage - the actionableMessage value to set.
      Returns:
      the ReportableException object itself.
    • filePath

      public String filePath()
      Get the filePath property: The path to the file where exception occurred.
      Returns:
      the filePath value.
    • lineNumber

      public String lineNumber()
      Get the lineNumber property: The line number where exception occurred.
      Returns:
      the lineNumber value.
    • hResult

      public Integer hResult()
      Get the hResult property: Coded numerical value that is assigned to a specific exception.
      Returns:
      the hResult value.
    • stackTrace

      public String 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.