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

C# |
public class SofuNotListException : Exception

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | SofuNotListException()()() |
Creates a new SofuNotListException
|
![]() | SofuNotListException(SofuObject) |
Creates a new SofuNotListException and also shows the type of the SofuObject that failed to be converted.
|
![]() | 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.list("BuildTarget").appendElement(new Sofu.Value("x64")); } catch (SofuNotListException e) { Console.WriteLine("Error while accessing BuildTarget:"); Console.WriteLine(e.message); }