Handling Occurrences for Exceptions in Ruby

Aspose.Tasks - Handling Occurrences for Exceptions

To Handle Occurrences for Exceptions using Aspose.Tasks Java for Ruby, simply invoke HandleOccurrencesForExceptions module. Here you can see example code.

Ruby Code

1except = Rjb::import('com.aspose.tasks.CalendarException').new
2except.setEnteredByOccurrences(true)
3except.setOccurrences(5)
4except.setType(Rjb::import('com.aspose.tasks.CalendarExceptionType').YearlyByDay)
5puts "Set Occurrences for exceptions"

Download Running Code

Download Handling Occurrences for Exceptions (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.