Change 4830

tony_smith (Tony Smith)
Tony Smith committed this change into //guest/tony_smith/perforce/API/Ruby
Request Review
Download .zip
Add named constants for P4Ruby's exception levels.
The valid levels
are:
    P4::RAISE_NONE      -- No exceptions
    P4::RAISE_ERRORS    -- Exceptions on errors only
    P4::RAISE_ALL        -- Exceptions on errors and warnings

Also added P4#at_exception_level( level ) { ... } method to allow you
to run a block of code at a different exception level and revert to
the previous level when the block completes. Thanks to Johan Nilsson.

Some doc tidying along with the docs for the features above.
  • Files 6
  • Comments 0
6 edited 0 added 0 deleted
current/P4Ruby.tar.gz#33
Loading...
main/Changes#39
Loading...
main/MANIFEST#6
Loading...
main/doc/P4.html#16
Loading...
main/lib/P4.rb#19
Loading...
main/p4rb_version.h#41
Loading...
Tip: Use n and p to cycle through the changes.