Class SPException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.avoka.component.sharepoint.SPException
All Implemented Interfaces:
Serializable

public class SPException extends Exception
Provides a SharePoint exception for SOAP fault messages generated on the SharePoint server.
Since:
3.5.0
See Also:
  • Constructor Details

    • SPException

      public SPException(String message)
      Create a critical SharePoint exception with the given message.
      Parameters:
      message - the error message
    • SPException

      public SPException(String message, String context)
      Create a critical SharePoint exception with the given message and context.
      Parameters:
      message - the error message
      context - the error context
    • SPException

      public SPException(String message, Throwable cause)
      Create a critical SharePoint exception with the given message and cause.
      Parameters:
      message - the error message
      cause - the cause of the error
    • SPException

      public SPException(String message, Throwable cause, String context)
      Create a SharePoint exception with the given message, cause and error context.
      Parameters:
      message - the error message
      cause - the cause of the error
      context - the error context
  • Method Details

    • getContext

      public String getContext()
      Return the error context.
      Returns:
      the error context
    • toString

      public String toString()
      Overrides:
      toString in class Throwable
      Returns:
      the string representation of the error