Sofu Documentation
SofuNotValueException Class
NamespacesSofu.SofuSofuNotValueException
This Exception get thrown if the programmer tries to convert a List, Map or Undefined into a Value
Declaration Syntax
C#
public class SofuNotValueException : Exception
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
SofuNotValueException()()()
Creates a new SofuNotValueException

SofuNotValueException(SofuObject)
Creates a new SofuNotValueException and also shows the type of the SofuObject that failed to be converted. This one is default when calling Value() or asValue()

Data (Inherited from Exception.)
Equals(Object) (Inherited from Object.)
Finalize()()() (Inherited from Object.)
GetBaseException()()() (Inherited from Exception.)
GetHashCode()()() (Inherited from Object.)
GetObjectData(SerializationInfo, StreamingContext) (Inherited from Exception.)
GetType()()() (Inherited from Exception.)
HelpLink (Inherited from Exception.)
HResult (Inherited from Exception.)
InnerException (Inherited from Exception.)
MemberwiseClone()()() (Inherited from Object.)
Message (Inherited from Exception.)
Source (Inherited from Exception.)
StackTrace (Inherited from Exception.)
TargetSite (Inherited from Exception.)
ToString()()() (Inherited from Exception.)
Examples
CopyC#
Sofu.Map config = Sofu.LoadFile("Config.Sofu");
try {
    Console.WriteLine(config.value("Message").ToString());
}
catch (SofuNotValueException e) {
    Console.WriteLine("Error while generation a message");
    Console.WriteLine(e.message);
}
Inheritance Hierarchy
Object
Exception
 SofuNotValueException

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)