Simplify / Fix indentation

Use PlatformDependent.throwException()