Added throws declaration to Message.read().
This commit is contained in:
parent
625743d174
commit
ae814b73ba
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ object Message {
|
|||
/**
|
||||
* Reads the entire message (header, crypto and body) into an object.
|
||||
*/
|
||||
@throws(classOf[ReadMessageException])
|
||||
def read(stream: InputStream): Message = {
|
||||
try {
|
||||
val headerBytes = new Array[Byte](MessageHeader.Length)
|
||||
|
|
Reference in a new issue