Adding nvl method to module classes and refactored exception classes to use an Int32.