Class GlobusGSSException

  • All Implemented Interfaces:
    java.io.Serializable

    public class GlobusGSSException
    extends org.ietf.jgss.GSSException
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GlobusGSSException​(int majorCode, int minorCode, java.lang.String key)  
      GlobusGSSException​(int majorCode, int minorCode, java.lang.String key, java.lang.Object[] args)  
      GlobusGSSException​(int majorCode, int minorCode, java.lang.String minorString, java.lang.Throwable cause)  
      GlobusGSSException​(int majorCode, java.lang.Throwable cause)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.lang.String getLocalMessage()  
      java.lang.String getMessage()  
      private static java.lang.String getUsefulMessage​(java.lang.Throwable throwable)
      Wrapper around getMessage method that tries to provide a meaningful message.
      private static boolean isBoring​(java.lang.Throwable t)
      Use heuristics to determine whether the supplied Throwable has any semantic content (i.e., does it provide any additional information).
      void printStackTrace()
      Prints this exception's stack trace to System.err.
      void printStackTrace​(java.io.PrintStream ps)
      Prints this exception's stack trace to a print stream.
      void printStackTrace​(java.io.PrintWriter pw)
      Prints this exception's stack trace to a print writer.
      • Methods inherited from class org.ietf.jgss.GSSException

        getMajor, getMajorString, getMinor, getMinorString, setMinor, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GlobusGSSException

        public GlobusGSSException​(int majorCode,
                                  java.lang.Throwable cause)
      • GlobusGSSException

        public GlobusGSSException​(int majorCode,
                                  int minorCode,
                                  java.lang.String minorString,
                                  java.lang.Throwable cause)
      • GlobusGSSException

        public GlobusGSSException​(int majorCode,
                                  int minorCode,
                                  java.lang.String key)
      • GlobusGSSException

        public GlobusGSSException​(int majorCode,
                                  int minorCode,
                                  java.lang.String key,
                                  java.lang.Object[] args)
    • Method Detail

      • 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 java.lang.Throwable
      • printStackTrace

        public void printStackTrace​(java.io.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 java.lang.Throwable
        Parameters:
        ps - The non-null print stream to which to print.
      • printStackTrace

        public void printStackTrace​(java.io.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 java.lang.Throwable
        Parameters:
        pw - The non-null print writer to which to print.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class org.ietf.jgss.GSSException
      • getUsefulMessage

        private static java.lang.String getUsefulMessage​(java.lang.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​(java.lang.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 java.lang.String getLocalMessage()