public class

GSSExceptionImpl

extends GSSException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ org.ietf.jgss.GSSException
         ↳ sun.security.jgss.GSSExceptionImpl

Class Overview

This class helps overcome a limitation of the org.ietf.jgss.GSSException class that does not allow the thrower to set a string corresponding to the major code.

Summary

[Expand]
Inherited Constants
From class org.ietf.jgss.GSSException
Public Constructors
GSSExceptionImpl(int majorCode, String majorMessage)
A constructor that takes the majorCode as well as the message that corresponds to it.
GSSExceptionImpl(int majorCode, Exception cause)
A constructor that takes the majorCode and the exception cause.
GSSExceptionImpl(int majorCode, String majorMessage, Exception cause)
A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.
Public Methods
String getMessage()
Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.
[Expand]
Inherited Methods
From class org.ietf.jgss.GSSException
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public GSSExceptionImpl (int majorCode, String majorMessage)

A constructor that takes the majorCode as well as the message that corresponds to it.

public GSSExceptionImpl (int majorCode, Exception cause)

A constructor that takes the majorCode and the exception cause.

public GSSExceptionImpl (int majorCode, String majorMessage, Exception cause)

A constructor that takes the majorCode, the message that corresponds to it, and the exception cause.

Public Methods

public String getMessage ()

Returns the message that was embedded in this object, otherwise it returns the default message that an org.ietf.jgss.GSSException generates.

Returns
  • a String with the error descriptions