달력 예외 작업
예외를위한 취급 발생 Calendarexception 클래스에 의해 노출 된 Seteccurrences 및 setenteredByoccurences 방법은 예외를 위해 발생을 처리하는 데 사용됩니다. 발생은 정수 데이터 유형을 지원하며 EnterdByoccurences는 부울 데이터 유형을 지원합니다.
프로그래밍 예
다음 코드 라인은 5 년 동안 예외를 유효하게 만들 것입니다.
1// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
2// The path to the documents directory.
3String dataDir = Utils.getDataDir(HandleOccurrences.class);
4
5CalendarException except = new CalendarException();
6except.setEnteredByOccurrences(true);
7except.setOccurrences(5);
8except.setType(CalendarExceptionType.YearlyByDay);