class Result(T, Exception)

Overview

+------------------------------------------------------------------------+# | Copyright © 2022 sourceweaver |# | Licensed under the Mozilla Public License, Version 2.0 (the "License").|# | You may not use this file except in compliance with the License. You |# | may obtain a copy of the License at http://mozilla.org/MPL/2.0/ |# +------------------------------------------------------------------------+#

Defined in:

result_type.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : T | Exception) #

[View source]

Instance Method Detail

def get_data : T #

[View source]
def get_error : Exception #

[View source]
def has_data? : Bool #

[View source]
def has_error? : Bool #

[View source]