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:
@ -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 |
|
||||
|
Reference in New Issue
Block a user