renamed SymbolSet to SymbolTable.

added some exception classes to use when something is not found.
renamed Set to AssociativeCollection and started writing a new Set class
This commit is contained in:
hyunghwan.chung
2018-06-20 18:01:04 +00:00
parent 913f5f6918
commit b9500933b8
4 changed files with 166 additions and 36 deletions

View File

@ -454,6 +454,22 @@ class ProhibitedMessageException(Exception)
{
}
class NotFoundException(Exception)
{
}
class KeyNotFoundException(NotFoundException)
{
}
class ValueNotFoundException(NotFoundException)
{
}
class IndexNotFoundException(NotFoundException)
{
}
extend Apex
{
method(#dual,#liberal) primitiveFailed(method)
@ -527,6 +543,11 @@ System logNl: '== END OF BACKTRACE =='.
SubclassResponsibilityException signal: ('Subclass must implement ' & method_name).
}
method(#dual) shouldNotImplement: method_name
{
SubclassResponsibilityException signal: ('Message should not be implemented - ' & method_name).
}
method(#dual) notImplemented: method_name
{
| class_name |