public DigestBase(Ruby runtime, RubyClass type) { super(runtime,type); if(type == runtime.getModule("Digest").getClass("Base")) { throw runtime.newNotImplementedError("Digest::Base is an abstract class"); } Metadata metadata = getMetadata(type); if(metadata == null) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } try { setAlgorithm(metadata); } catch(NoSuchAlgorithmException e) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } }
public DigestBase(Ruby runtime, RubyClass type) { super(runtime,type); if(type == runtime.getModule("Digest").getClass("Base")) { throw runtime.newNotImplementedError("Digest::Base is an abstract class"); } Metadata metadata = getMetadata(type); if(metadata == null) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } try { setAlgorithm(metadata); } catch(NoSuchAlgorithmException e) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } }
public DigestBase(Ruby runtime, RubyClass type) { super(runtime,type); if(type == runtime.getModule("Digest").getClass("Base")) { throw runtime.newNotImplementedError("Digest::Base is an abstract class"); } Metadata metadata = getMetadata(type); if(metadata == null) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } try { setAlgorithm(metadata); } catch(NoSuchAlgorithmException e) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } }
public DigestBase(Ruby runtime, RubyClass type) { super(runtime,type); if(type == runtime.getModule("Digest").getClass("Base")) { throw runtime.newNotImplementedError("Digest::Base is an abstract class"); } Metadata metadata = getMetadata(type); if(metadata == null) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } try { setAlgorithm(metadata); } catch(NoSuchAlgorithmException e) { throw runtime.newNotImplementedError("the " + type + "() function is unimplemented on this machine"); } }