UnsupportedFileExtensionException constructor

UnsupportedFileExtensionException(
  1. File file
)

Will be thrown, if a File is passed, which has no json extension.

Implementation

UnsupportedFileExtensionException(File file)
    : super(
    'The file extension ${file.path.split('.').last} is not '
        'supported. Make sure that the transferred file is a valid Json '
        'file. A Google Service account Json can be created via '
        'https://console.cloud.google.com/apis/credentials.',
    file);