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



IconMemberDescription
SofuNotMapException()()()
Creates a new SofuNotMapException.

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

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 {
    config.map("BuildOptions").SetAttribute("Debug",new Sofu.Value("1"));
}
catch (SofuNotMapException e) {
    Console.WriteLine("Error while accessing BuildTarget:");
    Console.WriteLine(e.message);
}
Inheritance Hierarchy
Object
Exception
 SofuNotMapException

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