org.apache.hadoop.yarn.exceptions (Apache Hadoop YARN API 3.5.0 API)
Description: declaration: package: org.apache.hadoop.yarn.exceptions

# Package org.apache.hadoop.yarn.exceptions

@Public package org.apache.hadoop.yarn.exceptions
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

- Class
  Description
  ApplicationAttemptNotFoundException
  This exception is thrown on `(GetApplicationAttemptReportRequest)` API when the Application Attempt doesn't exist in Application History Server or `ApplicationMasterProtocol.allocate(AllocateRequest)` if application doesn't exist in RM.
  ApplicationIdNotProvidedException
  Exception to be thrown when Client submit an application without providing `ApplicationId` in `ApplicationSubmissionContext`.
  ApplicationMasterNotRegisteredException
  This exception is thrown when an Application Master tries to unregister by calling `ApplicationMasterProtocol.finishApplicationMaster(FinishApplicationMasterRequest)` API without first registering by calling `ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)` or after an RM restart.
  ApplicationNotFoundException
  This exception is thrown on `(GetApplicationReportRequest)` API when the Application doesn't exist in RM and AHS
  ConfigurationException
  This exception is thrown on unrecoverable configuration errors.
  ContainerNotFoundException
  This exception is thrown on `(GetContainerReportRequest)` API when the container doesn't exist in AHS
  InvalidApplicationMasterRequestException
  This exception is thrown when an ApplicationMaster asks for resources by calling `ApplicationMasterProtocol.allocate(AllocateRequest)` without first registering by calling `ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)` or if it tries to register more than once.
  InvalidAuxServiceException
  This exception is thrown by a NodeManager that is rejecting start-container requests via `ContainerManagementProtocol.startContainers(StartContainersRequest)` for auxservices does not exist.
  InvalidContainerException
  This exception is thrown by a NodeManager that is rejecting start-container requests via `ContainerManagementProtocol.startContainers(StartContainersRequest)` for containers allocated by a previous instance of the RM.
  InvalidContainerReleaseException
  This exception is thrown when an Application Master tries to release containers not belonging to it using `ApplicationMasterProtocol.allocate(AllocateRequest)` API.
  InvalidLabelResourceRequestException
  This exception is thrown when a resource requested via `ResourceRequest` in the `ApplicationMasterProtocol.allocate(AllocateRequest)` when requested label is not having permission to access.
  InvalidResourceBlacklistRequestException
  This exception is thrown when an application provides an invalid `ResourceBlacklistRequest` specification for blacklisting of resources in `ApplicationMasterProtocol.allocate(AllocateRequest)` API.
  InvalidResourceRequestException
  This exception is thrown when a resource requested via `ResourceRequest` in the `ApplicationMasterProtocol.allocate(AllocateRequest)` API is out of the range of the configured lower and upper limits on resources.
  InvalidResourceRequestException.InvalidResourceType
  NMNotYetReadyException
  This exception is thrown on `ContainerManagementProtocol.startContainers(StartContainersRequest)` API when an NM starts from scratch but has not yet connected with RM.
  ResourceNotFoundException
  This exception is thrown when details of an unknown resource type are requested.
  ResourceProfilesNotEnabledException
  This exception is thrown when the client requests information about ResourceProfiles in the `ApplicationClientProtocol` but resource profiles is not enabled on the RM.
  SchedulerInvalidResourceRequestException
  This exception is thrown when any issue inside scheduler to handle a new or updated `SchedulingRequest`/ `ResourceRequest` add to the scheduler.
  YarnException
  YarnException indicates exceptions from yarn servers.
  YARNFeatureNotEnabledException
  This exception is thrown when a feature is being used which is not enabled yet.
  YarnRuntimeException
  Base YARN Exception.