MsalException Třída

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.microsoft.aad.msal4j.MsalException

public class MsalException
extends java.lang.RuntimeException

Typ základní výjimky vyvolaný v případě, že dojde k chybě během získávání tokenu.

Souhrn konstruktorů

Konstruktor Description
MsalException(String message, String errorCode)

Inicializuje novou instanci třídy výjimky.

MsalException(Throwable throwable)

Inicializuje novou instanci třídy výjimky.

Souhrn metod

Modifikátor a typ Metoda a popis
java.lang.String errorCode()

Metody zděděné od java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Metody zděděné od java.lang.Throwable

java.lang.Throwable.addSuppressed java.lang.Throwable.fillInStackTrace java.lang.Throwable.getCause java.lang.Throwable.getLocalizedMessage java.lang.Throwable.getMessage java.lang.Throwable.getStackTrace java.lang.Throwable.getSuppressed java.lang.Throwable.initCause java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.printStackTrace java.lang.Throwable.setStackTrace java.lang.Throwable.toString

Podrobnosti konstruktoru

MsalException

public MsalException(String message, String errorCode)

Inicializuje novou instanci třídy výjimky.

Parametry:

message - chybová zpráva, která vysvětluje důvod výjimky
errorCode

MsalException

public MsalException(Throwable throwable)

Inicializuje novou instanci třídy výjimky.

Parametry:

throwable - vnitřní výjimka, která je příčinou aktuální výjimky

Podrobnosti metody

errorCode

public String errorCode()

Platí pro