Enums

This module implements a simple error type to match the errors that can be thrown from the C functions as well as some extra errors resulting from internal validations.