Added throws declaration to Message.read().

This commit is contained in:
Felix Ableitner 2015-07-28 00:57:10 +02:00
parent 625743d174
commit ae814b73ba

View file

@ -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)