Class SSOException

    • Constructor Detail

      • SSOException

        public SSOException​(String msg)
        Constructs a SSOException with a detail message.
        Parameters:
        msg - The message provided by the object that is throwing the exception.
      • SSOException

        public SSOException​(String msg,
                            Throwable t)
        Constructs a SSOException with a detail message.
        Parameters:
        msg - The message provided by the object that is throwing the exception.
        t - The Throwable object provided by the object that is throwing the exception.
      • SSOException

        public SSOException​(String bundleName,
                            String errCode,
                            Object[] args)
        Constructs a SSOException with a detailed localizable error message.
        Parameters:
        bundleName - Resource Bundle Name to be used for getting localized error message.
        errCode - Key to resource bundle. You can use
          ResourceBundle rb = ResourceBunde.getBundle (rbName,locale);
          String localizedStr = rb.getString(errorCode)
         
        args - Arguments to message. If arguments to the message are not present, pass null.
      • SSOException

        public SSOException​(Throwable t)
        Constructs a SSOException with a specified throwable cause and detailed message.
        Parameters:
        t - The Throwable object provided by the object that is throwing the exception.
    • Method Detail

      • getL10NMessage

        public String getL10NMessage()
        Returns the localized message for this exception. Default locale is used to retrieve this message from properties file, which is the locale of OS.
        Returns:
        the localized message for this exception.