exceptions.dart

PHOTO EMBED

Sun Jun 19 2022 14:55:46 GMT+0000 (UTC)

Saved by @alefl10 #dart

import 'package:smart_contract_client/smart_contract_client.dart';

class SmartContractClientException implements Exception {
  const SmartContractClientException(this.originalException);

  final Object originalException;

  @override
  String toString() =>
      'SmartContractClientException -> ${originalException.toString()}';
}

class SmartContractException implements Exception {
  const SmartContractException(this.originalException);

  final Object originalException;

  @override
  String toString() =>
      'SmartContractException: Failed to create SmartContract -> '
      '${originalException.toString()}';
}
content_copyCOPY