This Exception get thrown if the programmer tries to convert a Value, List or Undefined into a Map

C# |
public class SofuNotMapException : Exception

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | 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.) |


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); }