aws-sso-permissionset/src/main/java/software/amazon/sso/permissionset/BaseHandlerStd.java [58:72]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  protected HandlerErrorCode mapExceptionToHandlerCode(Exception exception) {
    if (exception instanceof ResourceNotFoundException) {
      return HandlerErrorCode.NotFound;
    } else if (exception instanceof AccessDeniedException) {
      return HandlerErrorCode.AccessDenied;
    } else if (exception instanceof ValidationException) {
      return HandlerErrorCode.InvalidRequest;
    } else if (exception instanceof ConflictException) {
      return HandlerErrorCode.AlreadyExists;
    } else if (exception instanceof ThrottlingException) {
      return HandlerErrorCode.Throttling;
    } else {
      return HandlerErrorCode.InternalFailure;
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



aws-sso-assignment/src/main/java/software/amazon/sso/assignment/BaseHandlerStd.java [59:73]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  protected HandlerErrorCode mapExceptionToHandlerCode(Exception exception) {
    if (exception instanceof ResourceNotFoundException) {
      return HandlerErrorCode.NotFound;
    } else if (exception instanceof AccessDeniedException) {
      return HandlerErrorCode.AccessDenied;
    } else if (exception instanceof ValidationException) {
      return HandlerErrorCode.InvalidRequest;
    } else if (exception instanceof ConflictException) {
      return HandlerErrorCode.AlreadyExists;
    } else if (exception instanceof ThrottlingException) {
      return HandlerErrorCode.Throttling;
    } else {
      return HandlerErrorCode.InternalFailure;
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



