This exception is raised if a call is made to the OLE2 package but OLE2 is not supported on the current software platform.
OLE2.OLE_NOT_SUPPORTED EXCEPTION;
PROCEDURE ole_test IS
err_code BINARY_INTEGER;
err_text VARCHAR2(255);
BEGIN
olepack.init(...);
olepack.something(...);
olepack.shutdown(...);
EXCEPTION
WHEN OLE2.OLE_NOT_SUPPORTED THEN
TEXT_IO.PUT_LINE('OLE2 is not supported on this computer');
olepack.shutdown(...);
END ole_test;