Fan.Sys.Err.make C# (CSharp) Method

make() public static method

public static make ( ) : Err
return Err
        public static Err make()
        {
            return make("", (Err)null);
        }

Same methods

Err::make ( Exception ex ) : Err
Err::make ( string msg ) : Err
Err::make ( string msg, Err cause ) : Err
Err::make ( string msg, Exception e ) : Err

Usage Example

Ejemplo n.º 1
0
        public virtual object make(List args)
        {
            Method make = method("make", false);

            if (make != null && make.isPublic())
            {
                int  numArgs = args == null ? 0 : args.sz();
                List p       = make.@params();
                if ((numArgs == p.sz()) ||
                    (numArgs < p.sz() && ((Param)p.get(numArgs)).hasDefault()))
                {
                    return(make.m_func.callList(args));
                }
            }

            Slot defVal = slot("defVal", false);

            if (defVal is Field)
            {
                return(((Field)defVal).get(null));
            }
            if (defVal is Method)
            {
                return(((Method)defVal).m_func.callList(null));
            }

            throw Err.make("Type missing 'make' or 'defVal' slots: " + this).val;
        }
All Usage Examples Of Fan.Sys.Err::make