Class PlanningException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.semantickernel.SKException
-
- com.microsoft.semantickernel.planner.PlanningException
-
- All Implemented Interfaces:
Serializable
public class PlanningException extends SKException
Exception thrown for errors related to planning.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlanningException.ErrorCodesError codes for PlanningException
-
Constructor Summary
Constructors Constructor Description PlanningException(PlanningException.ErrorCodes error)PlanningException(PlanningException.ErrorCodes errorCode, String message)Initializes a new instance of the PlanningException class with a provided error code and messagePlanningException(PlanningException.ErrorCodes errorCode, String message, Throwable innerException)Initializes a new instance of the PlanningException class with a provided error code, message, and inner exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlanningException.ErrorCodesgetErrorCode()Gets the error code-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PlanningException
public PlanningException(@Nonnull PlanningException.ErrorCodes error)
-
PlanningException
public PlanningException(@Nonnull PlanningException.ErrorCodes errorCode, @Nullable String message)
Initializes a new instance of the PlanningException class with a provided error code and message- Parameters:
errorCode- Error codemessage- The exception message
-
PlanningException
public PlanningException(@Nonnull PlanningException.ErrorCodes errorCode, @Nullable String message, @Nullable Throwable innerException)
Initializes a new instance of the PlanningException class with a provided error code, message, and inner exception.- Parameters:
errorCode- The error codemessage- A string that describes the errorinnerException- The exception that is the cause of the current exception
-
-
Method Detail
-
getErrorCode
public PlanningException.ErrorCodes getErrorCode()
Gets the error code- Returns:
- The error code
-
-