UnimplementedException

Summary

The exception to be thrown if the method has not been implemented yet.

Description

UnimplementedException provides an exception for functions and methods that have not been implemented yet.

Difference from UnsupportedException

The key difference between UnimplementedException and UnsupportedException is that the former specifies an interface method is not implemented yet, while the latter specifies it's not possible to implement the interface method. All methods of an interface must be implemented, and UnimplementedException and UnsupportedException provide conveniences for dealing with interfaces.

Examples

Basic Usage
1
2
3
4
5
6
7
8
9
10
import System;
 
class Foo
{
    void bar() {
        throw new System.Exceptions.UnimplementedException(
            "TODO: implement `Foo.bar`"
        );
    }
}

Methods

Share

HTML | BBCode | Direct Link