 		
 		// An exception thrown should *not* be caught by a "catch" of a subtype
 		var exceptionC: NSException? = nil
-		let exceptionB = catchException {
+		let exceptionB = NSException.catchException {
 			exceptionC = ExceptionSubclass.catchException {
 				NSException(name: NSExceptionName("c"), reason: "d", userInfo: nil).raise()
 			}

class CatchExceptionTests: XCTestCase {
	func testCatchException() {
		// If no exception is thrown, result must be nil
		let noException = catchException {}
		XCTAssert(noException == nil)
		
		// An exception thrown should be caught by a "catch" of the same type
		let exceptionA = catchException {
			NSException(name: NSExceptionName("a"), reason: "b", userInfo: nil).raise()
		}
		XCTAssert(exceptionA != nil)

		XCTAssert(exceptionC == nil)
		
		// An exception thrown should be caught by a "catch" of a supertype
		let exceptionD = NSException.catchException {
			ExceptionSubclass(name: NSExceptionName("e"), reason: "f", userInfo: nil).raise()
		}
		XCTAssert(exceptionD != nil)
