javax.naming

Class NamingException

    • Constructor Detail

      • NamingException

        public NamingException(String explanation)
        Constructs a new NamingException with an explanation. All unspecified fields are set to null.
        Parameters:
        explanation - A possibly null string containing additional detail about this exception.
        See Also:
        Throwable.getMessage()
      • NamingException

        public NamingException()
        Constructs a new NamingException. All fields are set to null.
    • Method Detail

      • getResolvedName

        public Name getResolvedName()
        Retrieves the leading portion of the name that was resolved successfully.
        Returns:
        The part of the name that was resolved successfully. It is a composite name. It can be null, which means the resolved name field has not been set.
        See Also:
        getResolvedObj(), setResolvedName(javax.naming.Name)
      • getResolvedObj

        public Object getResolvedObj()
        Retrieves the object to which resolution was successful. This is the object to which the resolved name is bound.
        Returns:
        The possibly null object that was resolved so far. null means that the resolved object field has not been set.
        See Also:
        getResolvedName(), setResolvedObj(java.lang.Object)
      • getExplanation

        public String getExplanation()
        Retrieves the explanation associated with this exception.
        Returns:
        The possibly null detail string explaining more about this exception. If null, it means there is no detail message for this exception.
        See Also:
        Throwable.getMessage()
      • setResolvedName

        public void setResolvedName(Name name)
        Sets the resolved name field of this exception.

        name is a composite name. If the intent is to set this field using a compound name or string, you must "stringify" the compound name, and create a composite name with a single component using the string. You can then invoke this method using the resulting composite name.

        A copy of name is made and stored. Subsequent changes to name does not affect the copy in this NamingException and vice versa.

        Parameters:
        name - The possibly null name to set resolved name to. If null, it sets the resolved name field to null.
        See Also:
        getResolvedName()
      • setRemainingName

        public void setRemainingName(Name name)
        Sets the remaining name field of this exception.

        name is a composite name. If the intent is to set this field using a compound name or string, you must "stringify" the compound name, and create a composite name with a single component using the string. You can then invoke this method using the resulting composite name.

        A copy of name is made and stored. Subsequent changes to name does not affect the copy in this NamingException and vice versa.

        Parameters:
        name - The possibly null name to set remaining name to. If null, it sets the remaining name field to null.
        See Also:
        getRemainingName(), appendRemainingName(javax.naming.Name), appendRemainingComponent(java.lang.String)
      • setResolvedObj

        public void setResolvedObj(Object obj)
        Sets the resolved object field of this exception.
        Parameters:
        obj - The possibly null object to set resolved object to. If null, the resolved object field is set to null.
        See Also:
        getResolvedObj()
      • appendRemainingName

        public void appendRemainingName(Name name)
        Add components from 'name' as the last components in remaining name.

        name is a composite name. If the intent is to append a compound name, you should "stringify" the compound name then invoke the overloaded form that accepts a String parameter.

        Subsequent changes to name does not affect the remaining name field in this NamingException and vice versa.

        Parameters:
        name - The possibly null name containing ordered components to add. If name is null, this method does not do anything.
        See Also:
        setRemainingName(javax.naming.Name), getRemainingName(), appendRemainingComponent(java.lang.String)
      • getRootCause

        public Throwable getRootCause()
        Retrieves the root cause of this NamingException, if any. The root cause of a naming exception is used when the service provider wants to indicate to the caller a non-naming related exception but at the same time wants to use the NamingException structure to indicate how far the naming operation proceeded.

        This method predates the general-purpose exception chaining facility. The getCause() method is now the preferred means of obtaining this information.

        Returns:
        The possibly null exception that caused this naming exception. If null, it means no root cause has been set for this naming exception.
        See Also:
        setRootCause(java.lang.Throwable), rootException, getCause()
      • setRootCause

        public void setRootCause(Throwable e)
        Records the root cause of this NamingException. If e is this, this method does not do anything.

        This method predates the general-purpose exception chaining facility. The initCause(Throwable) method is now the preferred means of recording this information.

        Parameters:
        e - The possibly null exception that caused the naming operation to fail. If null, it means this naming exception has no root cause.
        See Also:
        getRootCause(), rootException, initCause(java.lang.Throwable)
      • getCause

        public Throwable getCause()
        Returns the cause of this exception. The cause is the throwable that caused this naming exception to be thrown. Returns null if the cause is nonexistent or unknown.
        Overrides:
        getCause in class Throwable
        Returns:
        the cause of this exception, or null if the cause is nonexistent or unknown.
        Since:
        1.4
        See Also:
        initCause(Throwable)
      • initCause

        public Throwable initCause(Throwable cause)
        Initializes the cause of this exception to the specified value. The cause is the throwable that caused this naming exception to be thrown.

        This method may be called at most once.

        Overrides:
        initCause in class Throwable
        Parameters:
        cause - the cause, which is saved for later retrieval by the getCause() method. A null value indicates that the cause is nonexistent or unknown.
        Returns:
        a reference to this NamingException instance.
        Throws:
        IllegalArgumentException - if cause is this exception. (A throwable cannot be its own cause.)
        IllegalStateException - if this method has already been called on this exception.
        Since:
        1.4
        See Also:
        getCause()
      • toString

        public String toString()
        Generates the string representation of this exception. The string representation consists of this exception's class name, its detailed message, and if it has a root cause, the string representation of the root cause exception, followed by the remaining name (if it is not null). This string is used for debugging and not meant to be interpreted programmatically.
        Overrides:
        toString in class Throwable
        Returns:
        The non-null string containing the string representation of this exception.
      • toString

        public String toString(boolean detail)
        Generates the string representation in more detail. This string representation consists of the information returned by the toString() that takes no parameters, plus the string representation of the resolved object (if it is not null). This string is used for debugging and not meant to be interpreted programmatically.
        Parameters:
        detail - If true, include details about the resolved object in addition to the other information.
        Returns:
        The non-null string containing the string representation.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/naming/NamingException.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut