Class GlobusGSSException

All Implemented Interfaces:
Serializable

public class GlobusGSSException extends GSSException
See Also:
  • Field Details

  • Constructor Details

    • GlobusGSSException

      public GlobusGSSException(int majorCode, Throwable cause)
    • GlobusGSSException

      public GlobusGSSException(int majorCode, int minorCode, String minorString, Throwable cause)
    • GlobusGSSException

      public GlobusGSSException(int majorCode, int minorCode, String key)
    • GlobusGSSException

      public GlobusGSSException(int majorCode, int minorCode, String key, Object[] args)
  • Method Details

    • printStackTrace

      public void printStackTrace()
      Prints this exception's stack trace to System.err. If this exception has a root exception; the stack trace of the root exception is printed to System.err instead.
      Overrides:
      printStackTrace in class Throwable
    • printStackTrace

      public void printStackTrace(PrintStream ps)
      Prints this exception's stack trace to a print stream. If this exception has a root exception; the stack trace of the root exception is printed to the print stream instead.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      ps - The non-null print stream to which to print.
    • printStackTrace

      public void printStackTrace(PrintWriter pw)
      Prints this exception's stack trace to a print writer. If this exception has a root exception; the stack trace of the root exception is printed to the print writer instead.
      Overrides:
      printStackTrace in class Throwable
      Parameters:
      pw - The non-null print writer to which to print.
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class GSSException
    • getUsefulMessage

      private static String getUsefulMessage(Throwable throwable)
      Wrapper around getMessage method that tries to provide a meaningful message. This is needed because many GSSException objects provide no useful information and the actual useful information is in the Throwable that caused the exception.
    • isBoring

      private static boolean isBoring(Throwable t)
      Use heuristics to determine whether the supplied Throwable has any semantic content (i.e., does it provide any additional information). It seems that many GSSException objects are created with no information. Instead, the useful information is contained within the causing Throwable. Also, an SSLException may be thrown by SSLEngine that wraps some more interesting exception but the message has no information. As part of a work-around for this problem, this method tries to guess whether the supplied Throwable contains useful information.
      Returns:
      true if the Throwable contains no useful information, false otherwise.
    • getLocalMessage

      private String getLocalMessage()