Added SerializerException.
Added errorhandling.