ber: Throw an exception that is working.
This commit is contained in:
parent
d0eeb9fa0f
commit
3034cb9fc1
5
BER.st
5
BER.st
|
@ -73,9 +73,8 @@ Object subclass: BERElement [
|
|||
"Transcript show: '*** Next byte is: ', firstByte asString; cr."
|
||||
elementClass := self identifyIncomingElement: firstByte.
|
||||
elementClass ifNil:
|
||||
[(LDAPException new)
|
||||
messageText: 'invalid tag -- make sure class is in identifyIncomingElements';
|
||||
signal].
|
||||
[self error:
|
||||
'invalid tag -- make sure class is in identifyIncomingElements: ', firstByte asString.].
|
||||
element := elementClass new setTag: firstByte.
|
||||
"we should read the tag here, instead of just the first byte"
|
||||
element readLengthFrom: aStream.
|
||||
|
|
Reference in New Issue