Ruby on Rails Thursday, September 24, 2015

On 24 September 2015 at 19:27, Anuj Tripathi <lists@ruby-forum.com> wrote:
> ...
> but in the log file some user have last login date as
>
> orcllastlogintime: 00000000
> and some
> as
> orcllastlogintime:
> i, e blank only , so my code is getting failed with below error :
>
> D:\Scripts\Batch\utils>jruby OID_Extract.rb
> DETAIL Loading configuration from
> D:/Scripts/Batch/lib/rbs/../../
> secure_hp_config.yaml
> INFO Job 'OID Extract' started on VMHODTRBSP124 by c_anujt with
> PID
> 32252
> DETAIL Working directory is: D:/Scripts/Batch/utils
> INFO Extracting users...
> ERROR An exception occurred in job 'OID Extract':
> ArgumentError: invalid date

You can catch the exception in your code and take whatever action you
think is appropriate

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtXhGdgUup14vJcb-b3uXf1hqR4s%2BYkvvHrtk0krYwSZQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment